10.12.2011, 12:44
(
Последний раз редактировалось Phantomkiller; 10.12.2011 в 12:45.
Причина: Sry for Editing but i put wrong on SetPlayerInterior(playerid, 0)
)
I made this AFK system and it works fine, but i need help going back... When im npr. at bank i type AFK and im afk, but when i type /back then im at same spot... Here is the script...
Код:
//AFK System if (!strcmp("/afk", cmdtext)) { if(PlayerInfo[playerid][pAdmin] > 1) { new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); new string[256]; new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); SetPlayerHealth(playerid, 10000) SetPlayerPos(playerid, 0,0,5) SetPlayerInterior(playerid, 5) format(string, sizeof(string), "* %s je Sada AFK.", sendername); SendClientMessageToAll(0xFFD700AA, string); } return 1; } if (!strcmp("/back", cmdtext)) { if(PlayerInfo[playerid][pAdmin] > 1) { new string[256]; new sendername[MAX_PLAYER_NAME]; new Float:cx, Float:cy, Float:cz; GetPlayerName(playerid, sendername, sizeof(sendername)); SetPlayerHealth(playerid, 50) SetPlayerPos(playerid, cx, cy, cz); SetPlayerInterior(playerid, 0) format(string, sizeof(string), "* %s Nije Vise AFK.", sendername); SendClientMessageToAll(0xFFD700AA, string); } return 1; }