Quote:
Originally Posted by aRoach
pawn Код:
new BackupCheckpoint[ MAX_PLAYERS ];
CMD:backup( playerid ) { if( GetPVarInt( playerid, "BackupMission" ) == 1 ) return SendClientMessage( playerid, -1, "Backup Mission is already ON" ); SetPVarInt( playerid, "BackupMission", 1 ); BackupCheckpoint[ playerid ] = CreateCheckpoint( ... ); SendClientMessage( playerid, -1, "Backup Mission was turned ON" ); return ( 1 ); }
And at OnPlayerDeath:
pawn Код:
if( GetPVarInt( playerid, "BackupMission" ) == 1 ) return SendClientMessage( playerid, -1, "you have failed to Finish the Mission !" ), SetPVarInt( playerid, "BackupMission", 0 );
With a timer and voila.
|
i am having 2 errors >>>>
Код:
C:\Documents and Settings\prince\Desktop\server\gamemodes\mygame.pwn(164) : error 017: undefined symbol "backup"
C:\Documents and Settings\prince\Desktop\server\gamemodes\mygame.pwn(168) : error 017: undefined symbol "CreateCheckpoint"