10.01.2010, 09:48
hello there,if i make /sawnoff command and teleport and i add SetPlayerSkin(playerid,55...) how i can make when the player die/leave the /sawnoff to give him back the same skin he had before joining /sawnoff
if (strcmp("/sawnoff", cmdtext, true, 10) == 0) { new pskin; new Float:pX, Float:pY, Float:pZ; pskin = (GetPlayerSkin(playerid)); GetPlayerPos(playerid,pX,pY,pZ); if(pArena[playerid] == NONE) { SetPlayerSkin(playerid,55); SetPlayerPos(playerid,1549.0627,-1675.7617,14.8003); } else { SetPlayerPos(playerid,pX,pY,pZ); SetPlayerSkin(playerid,pskin); } return 1; }