public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid,GetPlayerScore(killerid)+10);
GivePlayerMoney(killerid, 20);
UserInfo[cKills][killerid]++;
UserInfo[cDeaths][playerid]++;
CheckEXP(killerid);
if(pDM[playerid] == 1)
{
new rand = random(sizeof(RSpawn));
SpawnPlayer(playerid);
SetPlayerPos(playerid, RSpawn[rand][0],RSpawn[rand][1],RSpawn[rand][2]);
} else if(pCB[playerid] == 1)
{
SpawnPlayer(playerid);
}else if(pDM2[playerid] == 1)
{
SpawnPlayer(playerid);
if(Policia[playerid] == 1)
{
SetPlayerPos(playerid, 2245.8113,48.6440,26.4844);
}
if(Terror[playerid] == 1)
{
SetPlayerPos(playerid, 1355.2837,229.3216,19.5547);
}
}else if(pTDM[playerid] == 1)
{
SpawnPlayer(playerid);
if(Policia[playerid] == 1)
{
SetPlayerPos(playerid, 2245.8113,48.6440,26.4844);
} if(Terror[playerid] == 1)
{
SetPlayerPos(playerid, 1355.2837,229.3216,19.5547);
}
}
if(pTDM[killerid])
{
if(Policia[killerid] == 1)
{
PPolicia++;
} else if(Terror[killerid] == 1)
{
PTerror++;
}
}
return 1;
}
new bool:Morreu[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid,GetPlayerScore(killerid)+10);
GivePlayerMoney(killerid, 20);
UserInfo[cKills][killerid]++;
UserInfo[cDeaths][playerid]++;
CheckEXP(killerid);
if(pTDM[killerid])
{
if(Policia[killerid] == 1)
{
PPolicia++;
}
else if(Terror[killerid] == 1)
{
PTerror++;
}
}
Morreu[playerid] = true;
return 1;
}
if(Morto[playerid] == true)
{
Morto[playerid] = false;
if(pDM[playerid] == 1)
{
new rand = random(sizeof(RSpawn));
SpawnPlayer(playerid);
SetPlayerPos(playerid, RSpawn[rand][0],RSpawn[rand][1],RSpawn[rand][2]);
} else if(pCB[playerid] == 1)
{
SpawnPlayer(playerid);
}else if(pDM2[playerid] == 1)
{
SpawnPlayer(playerid);
if(Policia[playerid] == 1)
{
SetPlayerPos(playerid, 2245.8113,48.6440,26.4844);
}
if(Terror[playerid] == 1)
{
SetPlayerPos(playerid, 1355.2837,229.3216,19.5547);
}
}else if(pTDM[playerid] == 1)
{
SpawnPlayer(playerid);
if(Policia[playerid] == 1)
{
SetPlayerPos(playerid, 2245.8113,48.6440,26.4844);
} if(Terror[playerid] == 1)
{
SetPlayerPos(playerid, 1355.2837,229.3216,19.5547);
}
}
}
if(Morto[playerid] == true)
{
Morto[playerid] = false;
if(pDM[playerid] == 1)
{
new rand = random(sizeof(RSpawn));
SpawnPlayer(playerid);
SetPlayerPos(playerid, RSpawn[rand][0],RSpawn[rand][1],RSpawn[rand][2]);
}
else if(pCB[playerid] == 1)
{
SpawnPlayer(playerid);
}
else if(pDM2[playerid] == 1)
{
SpawnPlayer(playerid);
if(Policia[playerid] == 1)
{
SetPlayerPos(playerid, 2245.8113,48.6440,26.4844);
}
if(Terror[playerid] == 1)
{
SetPlayerPos(playerid, 1355.2837,229.3216,19.5547);
}
}
else if(pTDM[playerid] == 1)
{
SpawnPlayer(playerid);
if(Policia[playerid] == 1)
{
SetPlayerPos(playerid, 2245.8113,48.6440,26.4844);
}
if(Terror[playerid] == 1)
{
SetPlayerPos(playerid, 1355.2837,229.3216,19.5547);
}
}
}
Primeiro veja se o local nгo fica em um interior/VW diferente do interior/VW do player...
E depois, faзa o seguinte. Cria uma bool.. pawn Code:
pawn Code:
pawn Code:
Precisa arrumar a indentaзгo :P #Edit Cуdigo pra por na OnPlayerSpawn indentado: pawn Code:
|
nossaaa, vlw mesmo funciono, po vlw, ajudo muito se desse eu botava auto click em +rep, vlw mesmo achei q ia ter q comeзar o gm todo denovo, pow vlw.
@edit aff cara, o forum nгo ta dexando da +rep, mas eu juro por Deus q eu vo entrar amanhг sу pra dar o +rep. |