20.06.2011, 15:04
Whole code:
Код:
if(tazeronbelt[playerid] == 1) { tazeronbelt[playerid] = 0; SetPlayerAttachedObject(playerid, 0, 18642, 6, 0.06, 0.01, 0.08, 180.0, 0.0, 0.0); SendClientMessage(playerid,GREEN,"Your tazer has been un-holsterd"); } else if(tazeronbelt[playerid] == 0) { tazeronbelt[playerid] = 1; RemovePlayerAttachedObject(playerid, 0); SendClientMessage(playerid,GREEN, "Your tazer has been holsterd"); } else { SendClientMessage(playerid, GREEN, "You are not connected"); } } else { SendClientMessage(playerid, GREEN, "You are not a cop"); } return 1; } return 1; }