21.07.2013, 14:43
Hello everyone,
On my server there are two teams : Mercenaries and Ninjas.
My problem is, when a ninja enters the last checkpoint, I want all Mercs to be teleported to another location.
I tried :
I also tried this :
.... Still not working.. Help
On my server there are two teams : Mercenaries and Ninjas.
My problem is, when a ninja enters the last checkpoint, I want all Mercs to be teleported to another location.
I tried :
Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(gTeam[playerid] == NINJA)
{
if(checkpointid == ordi3)
{
SendClientMessage(playerid,0x00FF0000, "gate opened..");
SetPlayerPos(gTeam[playerid] = MERC, 211.8117,1811.8708,21.8672);
}
}
Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(gTeam[playerid] == NINJA)
{
if(checkpointid == ordi3)
{
SendClientMessage(playerid,0x00FF0000, "gate opened..");
if(gTeam[playerid] == MERC)
{
SetPlayerPos(playerid, 211.8117,1811.8708,21.8672);
}
}
}

