24.05.2018, 08:04
Quote:
Changing rcon command to admin command is your decision
to fix the loose indentation add #pragma tabsize 0 above your script. |
easiest solution is to just remove extra spaces within your command and add a tab or 4 spaces between tokens if they are joined together.
PHP код:
CMD:event(playerid, params[])
{
if(PlayerInfo[playerid][Level] >= 4)
{
if ( !EvenTStats )return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERROR]: The event is not open." ) ;
EvenTStats = true;
TheEvenT[playerid] = true;
GetPlayerPos ( playerid , EventoPos [ 0 ] , EventoPos [ 1 ] , EventoPos [ 2 ] ) ;
GetPlayerFacingAngle ( playerid , EventoPos [ 3 ] ) ;
EventoInt = GetPlayerInterior ( playerid ) ;
EventoVW = GetPlayerVirtualWorld ( playerid ) ;
return SendClientMessageToAll ( 0xFF00FFFF,"[ EVENT ] : EVENT OPEN BY ADMIN ENTER ' /EVENT ' !" ) ;
}
else return SendClientMessage ( playerid , 0x00C0FFFF , "You can not use this command..") ;
}