Need a Command "/gotopos" or "/setpos"
#5

Quote:
Originally Posted by [GF]Sasino97
Посмотреть сообщение
Код:
	
if (strcmp(cmd, "/setpos", true) == 0)
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    SetPVarFloat(playerid, "SavedX", X);
    SetPVarFloat(playerid, "SavedY", Y);
    SetPVarFloat(playerid, "SavedZ", Z);
    SendClientMessage(playerid,COLOR_GREEN, "Position saved.");
    return 1;
}
if (strcmp(cmd, "/gotopos", true) == 0)
{
    new Float:X, Float:Y, Float:Z;
    X = GetPVarFloat(playerid, "SavedX");
    Y = GetPVarFloat(playerid, "SavedY");
    Z = GetPVarFloat(playerid, "SavedZ");
    SetPlayerPos(playerid, X, Y, Z);
    SendClientMessage(playerid,COLOR_GREEN, "You went to saved position.");
    return 1;
}
DUDE, Again you helped me!! Man!!

Join my Teamviewer dude xD:

689 387 818
8517
Reply


Messages In This Thread
Need a Command "/gotopos" or "/setpos" - by up2u - 11.05.2011, 13:40
Re: Need a Command "/gotopos" or "/setpos" - by Laronic - 11.05.2011, 13:55
Re: Need a Command "/gotopos" or "/setpos" - by up2u - 11.05.2011, 14:07
Re: Need a Command "/gotopos" or "/setpos" - by Sasino97 - 11.05.2011, 14:14
Re: Need a Command "/gotopos" or "/setpos" - by up2u - 11.05.2011, 14:17
Re: Need a Command "/gotopos" or "/setpos" - by Laronic - 11.05.2011, 14:18
Re: Need a Command "/gotopos" or "/setpos" - by up2u - 11.05.2011, 14:20
Re: Need a Command "/gotopos" or "/setpos" - by Sasino97 - 11.05.2011, 14:20
Re: Need a Command "/gotopos" or "/setpos" - by up2u - 11.05.2011, 14:24
Re: Need a Command "/gotopos" or "/setpos" - by Sasino97 - 11.05.2011, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)