Need help
#5

Quote:
Originally Posted by ScRipTeRi
Посмотреть сообщение
pawn Код:
#include <a_samp>

new Float:PosX[MAX_PLAYERS], Float:PosY[MAX_PLAYERS], Float:PosZ[MAX_PLAYERS];
new ActivePos[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
ActivePos[playerid] = 0;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
ActivePos[playerid] = 0;
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/s", true) == 0)
    {
         GetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
         SendClientMessage(playerid, -1, "Your pos saved.");
         ActivePos[playerid] = 1;
         return 1;
    }
    if(strcmp(cmdtext, "/l", true) == 0)
    {
    if(ActivePos[playerid] == 1)
    {
    SetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
    SendClientMessage(playerid, -1, "Your pos loadet.");
    ActivePos[playerid] = 0;
    return 1;
    }
    }
    return 1;
    }
Thank you so much bro!
+REP
Reply


Messages In This Thread
Need help - by [UG]Daniel - 30.07.2013, 18:45
Re: Need help - by Facerafter - 30.07.2013, 18:46
Re: Need help - by [UG]Daniel - 30.07.2013, 18:56
Re: Need help - by ScRipTeRi - 30.07.2013, 19:32
Re: Need help - by [UG]Daniel - 30.07.2013, 21:22

Forum Jump:


Users browsing this thread: 1 Guest(s)