06.01.2011, 15:29
pawn Код:
if(strcmp(cmdtext,"/criarevento",true)==0)
{
if(EventoCriado == 1)
returnSendClientMessage(playerid,COLOR_GREY,"Um evento jб foi iniciado aguarde ele terminar");
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new
eventos[200],
CriadorEvento[24]
;
GetPlayerName(playerid, CriadorEvento,24);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Algum Administrador iniciou um evento");
GetPlayerPos(playerid,xxadmin,yyadmin,zzadmin);
adminint = GetPlayerInterior(playerid);
EventoCriado = 1;
for(new i; i<MAX_PLAYERS; i++)
{
format(eventos, sizeof(eventos),"Pelo Administrador %s\ne ele estб te chamando para partipar...\nGostaria de participar ?",CriadorEvento);
ShowPlayerDialog(i, 5424, DIALOG_STYLE_MSGBOX, "Evento Criado", eventos, "Sim", "Nгo");
}
}
return true;
}