27.06.2011, 19:55
pawn Код:
command(setzombie, playerid, params[])
{
new pID;
if( PlayerInfo[playerid][Admin] >= 4)
{
if(sscanf(params, "ud", pID)) return SendClientMessage(playerid, COLOUR_WHITE, "Usage: /setzombie [Player/Name]");
gTeam[pID] = TEAM_ZOMBIE;
PlayerInfo[pID][Zombie] = 1;
SetPlayerPos(pID, ZOMBIESPAWN);
SetPlayerColor(pID, COLOUR_YELLOW);
SendClientMessage(pID, COLOUR_WHITE, "You have been changed into a zombie by an Admin" );
SetPlayerSkin(pID, 162);
GivePlayerWeapon(pID, 9, 0);
}
return 1;
}
pawn Код:
command(test, playerid, params[])
{
if( GetPlayerTeam(playerid) == 2)
{
SendClientMessage(playerid, COLOUR_YELLOW, "YOU ARE A ZOMBIE!!!" );
}
else
{
SendClientMessage(playerid, COLOUR_WHITE, "YOU ARE NOT A ZOMBIE!!!" );
}
return 1;
}