17.02.2012, 17:16
Hey all!
I have problem whit gMedicSpawn
Problem is whan the player died he spawn in medicalsenter and not get out, the "You need a rest" will be a 100 time and player los 100$ every..
I have problem whit gMedicSpawn
Problem is whan the player died he spawn in medicalsenter and not get out, the "You need a rest" will be a 100 time and player los 100$ every..
Код HTML:
new Float:gMedicSpawns[3][3] = { {1166.6422,-1327.3516,-3.6048}, {1167.1890,-1304.2516,-3.6048}, {1167.1890,-1304.2516,-3.6048} };
Код HTML:
if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0) { if(FirstSpawn[playerid] != 1) { //new string[500]; new cut = deathcost; SafeGivePlayerMoney(playerid, -cut); MedicBill[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; SetPlayerToTeamColor(playerid); SetPlayerPos(playerid,1612.3240,-2330.1670,14.5469); SetPlayerFacingAngle(playerid, 0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerHealth(playerid, 50.0); PlayerInfo[playerid][pDeaths] += 1; SetPlayerInterior(playerid, 3); PlayerInfo[playerid][pInt] = 3; rand = random(sizeof(gMedicSpawns)); SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); SetPlayerFacingAngle(playerid, 0); TogglePlayerControllable(playerid, 0); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Sa pead puhkama n66d! ...", 30000, 3); JustDied[playerid] = 1; MedicTime[playerid] = 1; ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); if(PlayerInfo[playerid][pDonateRank] > 0) { NeedMedicTime[playerid] = 30; } else { NeedMedicTime[playerid] = 40; } PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0); return 1; } }