new gInjured[MAX_PLAYERS];
new gKilled[MAX_PLAYERS];
enum pPort
{
Float:pPortx,
Float:pPorty,
Float:pPortz,
};
new PlayerPort[MAX_PLAYERS][pPort];
//on SetPlayerSpawn
if(gKilled[playerid] == 1)
{
SetPlayerPos(playerid, PlayerPort[playerid][pPortx], PlayerPort[playerid][pPorty], PlayerPort[playerid][pPortz]);
SendClientMessage(playerid, COLOR_LIGHTRED, "** Vraćeni ste lokaciju na kojoj ste ubijeni radi RP-a **");
SendClientMessage(playerid, COLOR_WHITE, "** Imate dvije opcije,ћelite li umrijeti ili nastaviti RP-ati i zvati doktora? **");
SendClientMessage(playerid, COLOR_WHITE, "** Ako ћelite umrijeti koristite /die,ako ћelite nastaviti RP-ati /live **");
new playername[24];
new string[128];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "** %s pada na pod i počinje se tresti.", playername);
ProxDetector(30.0, playerid, string, COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN,COLOR_LIGHTGREEN);
gInjured[playerid] = 1;
SetPlayerHealth(playerid,25.0);
TogglePlayerControllable(playerid, 0);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
}
//OnPlayerDeath
else if (reason == 31)
{
gKilled[playerid] = 1;
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
PlayerPort[playerid][pPortx] = x;
PlayerPort[playerid][pPorty] = y;
PlayerPort[playerid][pPortz] = z;
}
|
Originally Posted by DJDhan
Can you tell us what AntiPG is first of all?
|
|
Originally Posted by DJDhan
You didn't see I edited my post with another question. Nvm, so what seems to be the problem? Errors,warnings or something in-game?
|
|
Originally Posted by shithead
//on SetPlayerSpawn
if(gKilled[playerid] == 1) . . . |
|
Originally Posted by DJDhan
Are you sure you have it under OnPlayerSpawn ? I just wondered since you have
Quote:
|
|
Originally Posted by shithead
Don't be jerks and tell me how to fix this!
|