2 SIMPLE questions:
#1

So:
1:How i can spawn someone at the hospital when die:

If i die i got spawned at the normal spawnpoint how i can have another spawn when someone die?

2: I would like to make a command: /Showme who shows your marker to all the skins id n*50 than after 5 mins remove it automatically.

Thanks +REP!
Reply
#2

This is not the request section.

Refer to https://sampforum.blast.hk/showthread.php?tid=187229 to request scripts.
Reply
#3

I didnt request i asked how to make...

Quote:

How i can

Reply
#4

When he die
try putting

OnPlayerDeath
pawn Код:
SetSpawnInfo
like this

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
        SetSpawnInfo(playerid,?,?,?,?,?,?,?, and etc.); // Put the hospital location
        SpawnPlayer(playerid);
    return 1;
}
Reply
#5

You need to get the co-ordinates for the hospital!

Under:

PHP код:
public OnPlayerDeath
{
    
SetPlayerPos(playeridX,Y,Z);
    
SetPlayerInterior(playerid6);
   
SpawnPlayer(playerid);
return 
1;

Well, couldn't find the co-ordinates for the hospital! Go in the Debug and find the co-ordinates, it's near the skate park!
This link would maybe help ya:

https://sampwiki.blast.hk/wiki/Interiors

@Rica
No, SetSpawnInfo wouldn't solve his problem! We don't wanna get the info, we wanna set the info!

To the second question: I didn't get you really...
Reply
#6

For your first problem if you want someone to spawn at a hospital, you just set a var then check for it in OnPlayerSpawn.

pawn Код:
new bool:gHospitalSpawn[MAX_PLAYERS];

//where you need it

gHospitalSpawn[playerid] = true;

//OnPlayerSpawn
if(gHospitalSpawn[playerid])
{
    SetPlayerPos(playerid, x, y, z);//put hospital co-ords here (set interior if needed)
}
I can't be bothered writing the command for you.
Reply
#7

Quote:
Originally Posted by iggy1
Посмотреть сообщение
For your first problem if you want someone to spawn at a hospital, you just set a var then check for it in OnPlayerSpawn.

pawn Код:
new bool:gHospitalSpawn[MAX_PLAYERS];

//where you need it

gHospitalSpawn[playerid] = true;

//OnPlayerSpawn
if(gHospitalSpawn[playerid])
{
    SetPlayerPos(playerid, x, y, z);//put hospital co-ords here (set interior if needed)
}
I can't be bothered writing the command for you.
You are right, though i would suggest using SetSpawnInfo(playerid,?,?,?,?,?,?,?, and etc.); // Put the hospital location as RicaNiel wrote earlier. It would prevent the "spawn lag".
Reply
#8

Anyone know the second? :/
Reply
#9

Could you explain a bit better please (for me if not anyone else) what do you mean by "n*50"?
Reply
#10

So, I made a 911 call command all works fine but sometimes the cops cant find the caller because he didnt wrote the location so. I would like to show at the skin ID 50 a red marker in the location of the call and remove it automatically after 5 minutes, create a checkpoint (RED CIRCLE) at the location, just the Skin ID50 can see it and by a command /REMOVEMarker (when he is arrived) can remove it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)