PHP код:
cmd(tazer, playerid, params[]) 
{ 
    new string[28+MAX_PLAYER_NAME]; 
        if(PlayerInfo[playerid][pFaction] != 1) return SendClientMessage(playerid, -1, "You cannot use this command."); 
    if(Tazer[playerid] == 0) 
    { 
        GivePlayerWeapon(playerid, 23, 9999); 
        format(string, sizeof(string),"%s has unholstered his tazer.", RemoveUnderScore(playerid)); 
        ProxDetector(30.0, playerid, string, PURPLE,PURPLE,PURPLE,PURPLE,PURPLE); 
        Tazer[playerid] = 1; 
    } 
    else 
    { 
        SetPlayerAmmo(playerid, 23, 0); 
        format(string, sizeof(string),"%s has holstered his tazer.", RemoveUnderScore(playerid)); 
        Tazer[playerid] = 0; 
        ProxDetector(30.0, playerid, string, PURPLE,PURPLE,PURPLE,PURPLE,PURPLE); 
    } 
    return 1; 
}