[GameMode] TDM DeltaForceXtremeBETA2 Project BattleWar
#5

Suggestion....

Код:
    if(strcmp(cmdtext,"/kill",true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
		    SetPlayerHealth(playerid, 0);
		}
	}
No need to check if the player is connected in this case.

Furthermore re-write the command system to use ZCMD it's much neater and more efficient than using a series of strcmp()'s

In OnPlayerSpawn

SetPlayerPos(playerid,2241.7932,2437.3384,10.8203) ;

This can be completely avoided by using
https://sampwiki.blast.hk/wiki/SetSpawnInfo
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)