Originally Posted by McX-7[wЂstSidЂ
]
pawn Код:
|
new bool : dead[MAX_PLAYERS]; new Float: x, Float: y, Float: z;
publci OnPlayerSpawn(playerid) { if(dead[playerid]==true) { SetPlayerPos(playerid,x,y,z); dead[playerid]=false; } return 1; }
public OnPlayerDeath(playerid) { dead[playerid]=true; GetPlayerPos(playerid,x,y,z); return 1; }
undefined symbol "dead"
new bool: dead[MAX_PLAYERS];
Originally Posted by DJDhan
Have you tested this?
|
undefined symbol "dead"
new bool : dead[MAX_PLAYERS];
new bool:dead[MAX_PLAYERS];
static gTeam[MAX_PLAYERS]; new Float:Your arena name[1][3] = { {DM spawn kordinates} }; public OnPlayerSpawn(playerid) { if (gTeam[playerid] == 0) { new rand = random(sizeof(areaatc)); SetPlayerPos(playerid, Arena Name[rand][0], Arena Name[rand][1], Arena name[rand][2]); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,25,100); // Guns GivePlayerWeapon(playerid,31,300); // Guns GivePlayerWeapon(playerid,16,5); // Guns SetPlayerColor(playerid,COLOR_GREY); SetPlayerTime(playerid, 12, 00); } if (strcmp(cmdtext, "/Arena name", true)==0) { gTeam[playerid] = 1; // gTeam id SetPlayerPos(playerid,108.7740,1917.5236,18.5575); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,25,100); GivePlayerWeapon(playerid,31,300); GivePlayerWeapon(playerid,16,5); SetPlayerColor(playerid,COLOR_BLUE); new pName[30]; GetPlayerName(playerid, pName, 30); format(string, 280, "%s now your arena name zone", pName); SendClientMessageToAll(COLOR_LIGHTBLUE, string); SendClientMessage(playerid,COLOR_LIGHTYELLOW,"If you wanna leave write /Leave"); return 1; } if (strcmp(cmdtext, "/Leave", true)==0) { gTeam[playerid] = 0; SetPlayerColor(playerid,COLOR_GREEN); ResetPlayerWeapons(playerid); SetPlayerWorldBounds(playerid, 9999.0, -9999.0, 9999.0, -9999.0); SpawnPlayer(playerid); return 1; }