ClearAnimations(id);
ApplyAnimation(id,"CRACK","crckdeth2",4.1,1,1,1,1,1);
ApplyAnimation(id,"CRACK","crckdeth2",4.1,1,1,1,1,1,1);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
CMD:taze(playerid,params[])
{
new id;
if(pData[playerid][pType] != LAW) return SendClientMessage(playerid,C_RED,"[ Error ]:"CWHITE" You need to be in the Law Faction to use this command");
if(sscanf(params,"u",id)) return SendClientMessage(playerid,C_WHITE,"Usage: /taze [ Name / Id ]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,C_RED,"[ Error ]:"CWHITE" Player Not Connected");
if(pData[id][pWantedLevel] == 0 ) return SendClientMessage(playerid,C_RED,"[ Error ]:"CWHITE" That person is dosen't have a warrant and you are not allowed to taze that person");
if(IsPlayerInAnyVehicle(id)) return SendClientMessage(playerid,C_RED,"[ Error ]:"CWHITE" The suspect is in a vehicle you can't taze it");
if(tazzed[playerid] == 1) return SendClientMessage(playerid,C_RED,"[ Error ]:"CWHITE" That person is already tazzed");
if(IsPlayerNearPlayer(playerid,id,3.0))
{
SendClientMessage(playerid,C_BLUE," An officer has tazzed you and you can't move");
tazzed[playerid] = 1;
ClearAnimations(id);
ApplyAnimation(id,"CRACK","crckdeth2",4.1,1,1,1,1,1,1);
TogglePlayerControllable(id,0);
}
else return SendClientMessage(playerid,C_RED,"[ Error ]:"CWHITE" That Person is too far away to taze");
return 1;
}
ClearAnimations(id);
ApplyAnimation(id,"CRACK","crckdeth2",4.1,1,1,1,1,1,1);
TogglePlayerControllable(id,0);
ClearAnimations(id);
TogglePlayerControllable(id,0);
ApplyAnimation(id,"CRACK","crckdeth2",4.1,1,1,1,1,1,1);
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1,1);
i see the problem
pawn Код:
never try this? pawn Код:
|