29.12.2009, 17:42
Para que o teu source nгo esteja a funcionar bem, sу vejo este problema:
Portanto, deixo-te aquilo um possivel source:
ps. Criei uma nova conta para ver se vos ajudo...
pawn Code:
public OnPlayerConnect(playerid) {
MedicBill[playerid] = 1;
return true; }
pawn Code:
#include a_samp
#define MAX_SERVER_PLAYERS 500
new
MedicBill[MAX_SERVER_PLAYERS];
public OnPlayerConnect(playerid) {
MedicBill[playerid] = 0; // Repara
return true; }
public OnPlayerDeath(playerid, killerid, reason) {
MedicBill[playerid] = 1;
return true; }
public OnPlayerSpawn(playerid) {
if(MedicBill[playerid] == 1) {
SetPlayerPos(playerid, Float:X, Float:Y, Float:Z); } // Spawnposition: Hospital
return true; }
/* EOS */