MedicBill[playerid] = 1; |
if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0) { new string[256]; SendClientMessage(playerid, TEAM_CYAN_COLOR, string); MedicBill[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; PlayerInfo[playerid][pDeaths] += 1; SetPlayerPos(playerid, 1177.4150,-1323.5944,14.0696); SetPlayerInterior(playerid, 0); PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0); TogglePlayerControllable(playerid, 1); return 1; } |
MedicBill[playerid] = 0; |
public OnPlayerConnect(playerid) {
MedicBill[playerid] = 1;
return true; }
#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 */