|
|
#1 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2008
Location: The south.
Posts: 1,024
Reputation: 33
|
I made a checkpoint for my objective mode, but i want to make it where it restarts the server when the correct team touch's it.
heres my code : i want it to stop team 1 from activating it. and only team 2 to activate it. Code:
public OnPlayerEnterCheckpoint(playerid)
{
GetPlayerTeam(playerid);
if(gTeam[playerid] == 1)
{
SendClientMessage(playerid,COLOR_GREEN, "You are the rong team!");
}
else
{
GameTextForPlayer(playerid, "|PRISONERS WIN|", 2500, 5);
return 1;
}
|
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Oct 2007
Posts: 1,055
Reputation: 62
|
Try this (Not Tested):
pawn Code:
|
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2008
Location: The south.
Posts: 1,024
Reputation: 33
|
yeah it works, but i cant get ongamemodexit to work.
they touch it, but it doesnt restart :S |
|
|
|
|
#4 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Oct 2007
Posts: 1,055
Reputation: 62
|
Use:
pawn Code:
|
|
|
|
|
#5 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2008
Location: The south.
Posts: 1,024
Reputation: 33
|
it works, i didnt put it in the right place, :P
One more question, How do it when a player dies, they are frozen, and then when all the teams players are frozen they loose? like.. all of team a's players are frozen, team b wins the round! |
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Checkpoint problem | aircombat | Help Archive | 7 | 05/06/2010 03:29 PM |
| Checkpoint problem | [Bm]rap45 | Help Archive | 4 | 05/02/2010 02:08 AM |
| Checkpoint problem | killdahobo99 | Help Archive | 5 | 14/07/2009 02:42 PM |
| problem with checkpoint | Pawno_Master | Help Archive | 18 | 04/07/2009 12:05 PM |
| Problem with Checkpoint! | reflexion | Help Archive | 0 | 20/06/2009 09:25 PM |