2 quick questions. (NoDmg and SavePlayerPos)
#1

So basically I've scripted a Jefferson Motel DM but I want it to be like that once you choose to be a cop, to stay there until you do /leavejdm
Also, how would I be off doing something like, if this skin, damages this skin, no damage is taken due to being in the same team.
Reply
#2

You can use the SetPlayerTeam); function. It disables friendly fire if 2 people are in the same team
Reply
#3

Thanks for that Ryder, really helpful!
Just have to find out how to SavePlayerPos now :/.
Reply
#4

If by that you require to save someone's position, you can do it like this

pawn Код:
//On top of your script, outside a callback
new Float:SaveX[MAX_PLAYERS], Float:SaveY[MAX_PLAYERS], Float:SaveZ[MAX_PLAYERS];

//Later on
stock SavePlayerPos(playerid)
{
GetPlayerPos(playerid, SaveX[playerid], SaveY[playerid], SaveZ[playerid];
return 1;
}
Their position will be saved in them values
Reply
#5

Quote:
Originally Posted by [HK]Ryder[AN]
Посмотреть сообщение
You can use the SetPlayerTeam); function. It disables friendly fire if 2 people are in the same team
Although, they can be killed with a knife.
Reply
#6

Quote:
Originally Posted by [HK]Ryder[AN]
Посмотреть сообщение
If by that you require to save someone's position, you can do it like this

pawn Код:
//On top of your script, outside a callback
new Float:SaveX[MAX_PLAYERS], Float:SaveY[MAX_PLAYERS], Float:SaveZ[MAX_PLAYERS];

//Later on
stock SavePlayerPos(playerid)
{
GetPlayerPos(playerid, SaveX[playerid], SaveY[playerid], SaveZ[playerid];
return 1;
}
Their position will be saved in them values
But how will they spawn at the earlier location they spawned at when they connected before doing /jdm for example?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)