Hey Leute ...
wenn ich /tazer 0 1 eingebe (bsp)
dann steht da : /tazer [playerid]
kann mir jemand helfen
ocmd:tazer(playerid,params[])
{
new pID;
if(sscanf(params,"ui",pID))return SendClientMessage(playerid,BLAU,"/tazer [playerid]");
if(isPlayerInFrakt(playerid,1))
{
new Float:cx,Float:cy,Float:cz;
GetPlayerPos(playerid,cx,cy,cz);
for(new i = 0; i < MAX_PLAYERS; i++)
if(IsPlayerInRangeOfPoint(i,2.0,cx,cy,cz))
{
TogglePlayerControllable(pID,0);
SetTimer("tazertimer",5000, false);
return 1;
}
}
return 1;
}
danke gruß Kamel