19.01.2014, 16:11
i have an script on my gm with stunt event , i want to participate onlye people that have NRG or PCJ .
This is the comand /stuntevent :
This is the comand /stuntevent :
Код:
if(strcmp(cmd,"/stuntevent",true)==0) { if(IsPlayerConnected(playerid)) { if(NRGStarted == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE,"This event isn't started at the moment!"); return 1; } if(PlayerOnMission[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " You're on mission right now,you can't hold any Materials Packages!"); return 1; } SetPlayerCheckpoint(playerid, NRGStuntX,NRGStuntY,NRGStuntZ, 3.0); IsAtStuntEvent[playerid] = 1; SendClientMessage(playerid, COLOR_LIGHTBLUE, "{FFFFFF}••• Ai intrat la {FF9900}StuntEVENT. {FFFFFF}Du-te la checkpoint si fa {FF9900}stunt-ul!"); return 1; } }