Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerDeath(playerid,killerid)
- {
- if(GetDistanceBetweenPoint(playerid,2030.1873,-1404.7402,17.2517) > GetDistanceBetweenPoint(playerid,1173.2455,-1323.6012,15.3944))
- {
- printf("%f | %f",GetDistanceBetweenPoint(playerid,2030.1873,-1404.7402,17.2517),GetDistanceBetweenPoint(playerid,1173.2455,-1323.6012,15.3944));
- SpawnAtHospial[playerid] = 1;
- printf("%d",SpawnAtHospial[playerid]);
- Dead[playerid] = 1;
- SendClientMessage(Called[playerid],PlainColour,"2");
- }
- if(GetDistanceBetweenPoint(playerid,1173.2455,-1323.6012,15.3944) < GetDistanceBetweenPoint(playerid,2030.1873,-1404.7402,17.2517))
- {
- printf("%f | %f",GetDistanceBetweenPoint(playerid,1173.2455,-1323.6012,15.3944),GetDistanceBetweenPoint(playerid,2030.1873,-1404.7402,17.2517));
- SpawnAtHospial[playerid] = 2;
- printf("%d",SpawnAtHospial[playerid]);
- Dead[playerid] = 1;
- SendClientMessage(Called[playerid],PlainColour,"3");
- }
- SendClientMessage(Called[playerid],PlainColour,"1");
- if(InACall[playerid] == 1)
- {
- AwaitingCall[playerid] = 0;
- SendClientMessage(Called[playerid],PlainColour,"The tone went dead!");
- InACall[Called[playerid]] = 0;
- InACall[playerid] = 0;
- if(!IsPlayerInAnyVehicle(InACall[Called[playerid]]))
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
- }
- }
- if(Job[playerid] != 0) SendClientMessage(playerid,0xC0C0C0FF,"Your job was cancelled!");
- AwaitingJob[playerid] = 0;
- Job[playerid] = 0;
- Dead[playerid] = 1;
- GotDrugPacks[playerid] = 0;
- SetPlayerHealth(playerid,100);
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- SendClientMessage(Called[playerid],PlainColour,"4");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement