03.10.2011, 01:09
pawn Код:
CMD:eventomotos(playerid, params)
{
new id, reason[128];
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid, COLOR_WHITE, "You need to be a admin to use that command!");
if(Eventopolis[playerid] == 1) return SendClientMessage(playerid, -1, "No puedes abrir un nuevo evento! Primero termina con el evento de policias contra ladrones!");
if(Eventojaula[playerid] == 1) return SendClientMessage(playerid, -1, "No puedes abrir un nuevo evento! Primero termina con el evento de la jaula!");
if(Eventomotos[playerid] == 1) return SendClientMessage(playerid, -1, "Ya hay un evento de motos corriendo!");
else if(sscanf(params, "us", id, reason))SendClientMessage(playerid, COLOR_WHITE, "Usage: /kick [id/name][reason]");
{
SetPlayerPos(playerid, -1803.5037,-587.1879,15.9822);
SetPlayerVirtualWorld(playerid, 9);
Eventomotos[playerid] = 1;
}
return 1;
}