backup command
#3

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"
Reply


Messages In This Thread
backup command - by jiwan - 21.10.2011, 16:00
Re: backup command - by aRoach - 21.10.2011, 16:28
Re: backup command - by jiwan - 23.10.2011, 12:19
Re: backup command - by jiwan - 24.10.2011, 05:05
Re: backup command - by jiwan - 24.10.2011, 14:05
Re: backup command - by Rks25 - 24.10.2011, 14:28
Re: backup command - by jiwan - 24.10.2011, 14:32
Re: backup command - by Zonoya - 24.10.2011, 14:50
Re: backup command - by Rks25 - 24.10.2011, 14:53
Re: backup command - by Zonoya - 24.10.2011, 14:53

Forum Jump:


Users browsing this thread: 1 Guest(s)