28.11.2015, 16:10
Hello, I have a big problem with jail system. I have a server where player can be jailed for some time. Everything works, this jail timer works fine until
where server should say "Unjailed". But server says nothing and player stays in the same position (SetPlayerPos don't work)! But the biggest mistery of this script for me is that function
works... I'm not so good in pawno, anyne can help me explaining why player do not get teleported and server message do not show, but SetPVarIn works fine?
Quote:
else if(GetPVarInt(i, "Jail") == 1) |
Quote:
SetPVarInt(i, "Jail", GetPVarInt(i, "Jail")-1); |
Код:
else if(GetPVarInt(i, "Jail") == 1) { SetPlayerHealth(i, 100); SetPlayerPos(i, 621.689453125, -596.9580078125, 16.731489181519); SendClientMessage(i, COLOR_GREEN, "SERVER: Unjailed!"); format(file, 128, "/Accounts/%s.ini", GetName(i)); SetPVarInt(i, "Jail", GetPVarInt(i, "Jail")-1); }