18.05.2018, 18:56
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; }