I need a /s and /l
#2

pawn Code:
// Make this a global variable
new Float:Pos[MAX_PLAYERS][3]

// Place this under OnPlayerCommandText
if(strcmp("/s", true) ==0)
{
     GetPlayerPos(playerid, Pos[playerid][0], Pos[playerid][1], Pos[playerid][2]);
     return SendClientMessage(playerid, COLOR_WHITE, "[SERVER]: Your position has been saved. Use /l to load it.");
}

if(strcmp("/l", true) ==0)
{
     SetPlayerPos(playerid, Pos[playerid][0], Pos[playerid][1], Pos[playerid][2]);
     return SendClientMessage(playerid, COLOR_WHITE, "[SERVER]: Your position has been loaded.");
}
Reply


Messages In This Thread
I need a /s and /l - by [A]ndrei - 27.06.2012, 05:50
Re: I need a /s and /l - by Makaveli93 - 27.06.2012, 05:53
Re: I need a /s and /l - by [A]ndrei - 27.06.2012, 05:55
Re: I need a /s and /l - by Makaveli93 - 27.06.2012, 05:59
Re: I need a /s and /l - by [A]ndrei - 27.06.2012, 06:01
Re: I need a /s and /l - by Makaveli93 - 27.06.2012, 06:08
Re: I need a /s and /l - by [A]ndrei - 27.06.2012, 06:44
Re: I need a /s and /l - by [A]ndrei - 19.07.2012, 02:33
Respuesta: Re: I need a /s and /l - by HarlemSAMP - 19.07.2012, 04:50
Re: I need a /s and /l - by NuLIO - 19.07.2012, 10:52

Forum Jump:


Users browsing this thread: 1 Guest(s)