22.01.2010, 18:41
Im on a computer without pawno or gtasa atm so i cannot test it,
If somethings wrong could you correct it,
Also i cant see what animations what,
So if the animation im using is different to what they use on roleplay,
Please change it
pawn Код:
dcmd_tazer(playerid, params[])
{
if(gTeam[playerid] != TEAM_POLICELS) {
SendClientMessage(playerid,COLOR_RED,"[ERROR] You need to be a police officer to use this command");
}
else if(sscanf(params,"u",id)) {
SendClientMessage(playerid,COLOR_RED,"[USAGE] /tazer [ID]");
}
else if(!IsPlayerConnected(id)) {
SendClientMessage(playerid,COLOR_RED,"Player is not connected");
}
else if(gTeam[id] == TEAM_POLICESF) {
SendClientMessage(playerid,COLOR_RED,"[ERROR] You cannot tazer a colleague");
}
else if(id == playerid) {
SendClientMessage(playerid,COLOR_RED,"[ERROR] You cannot tazeryourself");
}
else {
new name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, name1, sizeof(name1));
format(string, sizeof(string), "Police Officer %s has tazerd %s.", name, name1);
SendClientMessageToAll(COLOR_WHITE, string);
SetTimerEx("Tazer", 5000, 0, "i", playerid);
TogglePlayerControllable(playerid, 0);
ApplyAnimation(playerid,"CRACK","crckdeth1",4.1,1,1,1,1,1);
}
return 1;
}
public Tazer(playerid)
{
TogglePlayerControllable(playerid,1);
ClearAnimations(playerid);
}
Also i cant see what animations what,
So if the animation im using is different to what they use on roleplay,
Please change it