08.06.2012, 06:09
pawn Code:
YCMD:makeevent(playerid, params[], help)
{
new str[128];
if(PlayerInfo[playerid][pAdmin] >= 5 && IsPlayerAdmin(playerid))
{
ResetPlayerWeapons(playerid);
format(str,sizeof(str),"{FF7F00}%s has made a event, type /joinevent to join the event.", GetName(playerid));
SendClientMessageToAll(-1,str);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid, 1798.2366,-1303.9529,120.2656);
GivePlayerWeapon(playerid, 24, 200);
SetPlayerArmour(playerid, 100);
}
else
{
SendClientMessage(playerid, COLOR_ORANGE, "You are not enough high administrator level!");
}
return 1;
}