I need help with scripting regarding [/accept death]
#6

Quote:
Originally Posted by Jamester
Посмотреть сообщение
You would need to put that at the start.

PHP код:
if(strcmp(params"death"true) == 0) {
            if(
GetPVarInt(playerid"Injured") == 1) {
                for(new 
iMAX_PLAYERSi++) { // GetPlayerPool() or foreach is highly recommended!
                    
if(playervar[i][emsvar/faction]) {
                        return 
SendClientMessage(playeridCOLOR_GREY"There is a EMS online!");
                           break;
                       }
                }  
                   
SendClientMessageEx(playeridCOLOR_WHITE"You gave up hope and fell unconscious, you were immediately sent to the hospital.");
                   
KillEMSQueue(playerid);
                    
ResetPlayerWeaponsEx(playerid);
                    
SpawnPlayer(playerid);
            }
            else {  
SendClientMessageEx(playeridCOLOR_GREY"   You are not injured, you can't do this right now !"); } 
if(playervar[i][emsvar/faction]) { - I need to change it in if(IsAMedic(playerid))?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)