help do not use commands in event
#1

hello how can I add a variable I do not command an example when they enter the event / ejoin no longer seems to use commands

Код:
CMD:event(playerid)
{
    if ( TheEvenT [ playerid ] == true ) return SendClientMessage ( playerid , 0x9FFF00FF , "{F81414}[ERROR]: You can not enter commands in event, type /ExitEvent out!" ) ;
    if ( !EvenTStats ) return SendClientMessage ( playerid , 0x00C0FFFF , "{F81414}[ERROR]: The event is not open." ) ;
    new Float:Health;
    GetPlayerHealth ( playerid , Health ) ;
    if ( Health < 30.0 ) return SendClientMessage ( playerid, 0xFF0000FF, "{F81414}[ERROR] You can not teleport with little life." ) ;
    TheEvenT [ playerid ] = true ;
    ResetPlayerWeapons ( playerid ) ;
    format ( iString2 , sizeof ( iString2 ) , "{FFFFFF}' %s ' {F81414}It was for the event {FFFFFF}( /EVENT )", GetPName ( playerid ) ) ;
    SendClientMessageToAll ( 0x88FF9FFF , iString2 ) ;
    SetPlayerPos ( playerid , EventoPos [ 0 ] , EventoPos [ 1 ] , EventoPos [ 2 ] ) ;
    SetPlayerFacingAngle ( playerid , EventoPos [ 3 ] ) ;
    SetPlayerInterior ( playerid , EventoInt ) ;
    SetPlayerVirtualWorld ( playerid , EventoVW ) ;
    return 1;
}
Reply


Messages In This Thread
help do not use commands in event - by nbx2000 - 18.05.2018, 18:56
Re: help do not use commands in event - by kovac - 18.05.2018, 19:00
Re: help do not use commands in event - by nbx2000 - 18.05.2018, 19:48
Re: help do not use commands in event - by kovac - 18.05.2018, 20:41
Re: help do not use commands in event - by nbx2000 - 18.05.2018, 21:22
Re: help do not use commands in event - by kovac - 18.05.2018, 21:38
Re: help do not use commands in event - by nbx2000 - 18.05.2018, 22:04
Re: help do not use commands in event - by kovac - 18.05.2018, 22:16
Re: help do not use commands in event - by dani18 - 19.05.2018, 00:26
Re: help do not use commands in event - by JasonRiggs - 19.05.2018, 01:18

Forum Jump:


Users browsing this thread: 2 Guest(s)