04.06.2014, 19:43
pawn Код:
enum pInfo
{
pAdmin,
bool:pBan
}
new PlayerInfo[MAX_PLAYERS][pInfo];
examle:
CMD:giveweapon(playerid,params[])
{
if( PlayerInfo[playerid][pAdmin] < 3 ) return 1;
if(sscanf(params,"udd",params[0],params[1],params[2])) return SendClientMessage(playerid,-1,"Usage:{ff0000} /GiveWeapon [playerid] [WeaponID] [Amount]");
GivePlayerWeapon(params[0],params[1],params[2]);
SendFormatMessage(playerid,-1,"{FF00FF}You gaved to %s weapon",GetName[ params[0] ]);
SendFormatMessage(params[0],-1,"{FF00FF}The admin %s gaved you weapon",GetName[playerid]);
return 1;
}