#1

Hello, i have mask system, i added to 24/7 its working fine, player buy mask normal but if he relogged he will still have the mask.
What i need is when player disconnect the mask remove.
I hope you will help me.
PS sorry for my bad english
Reply
#2

Since I have no answer so guys this dude looks really need help I don't know alot about scripts so I can't help him but someone help him..

PS: feeling your feelings xD
Reply
#3

You need to set the mask in "pInfo" (or it could be something else depending of your script) to 0 on the OnPlayerDisconnect callback.

Example:
Код:
OnPlayerDisconnect(playerid,reason)
{
pInfo[playerid][pMask] = 0;
}
Note: This will also work if you use OnPlayerConnect or OnPlayerSpawn.
Reply
#4

i'm adding :
Код:
 PlayerInfo[playerid][pMask] = 0;
to public onplayerdisconnect, but the pawno stop working
Reply
#5

i added
Код:
 PlayerInfo[playerid][pMask] = 0;
to onplayerspawn and worked fine
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)