/gotols /gotosf /gotolv
#3

If the code doesn't need params, then why are you actually accepting them?

Код:
CMD:gotols(playerid)
is all you need.

Код:
CMD:gotols(playerid) 
{ 
    if(!IsPlayerAdmin(playerid)) {return 0;} 
    SetPlayerInterior(playerid, 0); 
    SetPlayerPos(playerid, 1258.7352,-2036.7100,59.4561); 
    SendClientMessage(playerid, COLOR_WHITE, "You have been teleported to Los Santos!");
    return 1; 
} 

CMD:gotosf(playerid) 
{ 
    if(!IsPlayerAdmin(playerid)) {return 0;}
    SetPlayerInterior(playerid, 0); 
    SetPlayerPos(playerid, -2018.0339,145.6004,27.9839); 
    SendClientMessage(playerid, COLOR_WHITE, "You have been teleported to San Fierro!"); 
    return 1; 
} 

CMD:gotolv(playerid) 
{ 
    if(!IsPlayerAdmin(playerid)) {return 0;}
    SetPlayerInterior(playerid, 0); 
    SetPlayerPos(playerid, 2034.0673,1007.7039,10.8203); 
    SendClientMessage(playerid, COLOR_WHITE, "You have been teleported to Las Venturas!"); 
    return 1;
}
I just modified it to work on a stock script. You'd be better off following the example I have provided, than following the guy above.
Reply


Messages In This Thread
/gotols /gotosf /gotolv - by Jaua10 - 05.06.2018, 00:59
Re: /gotols /gotosf /gotolv - by mmostafa - 05.06.2018, 01:22
Re: /gotols /gotosf /gotolv - by Sew_Sumi - 05.06.2018, 01:29
Re: /gotols /gotosf /gotolv - by Jaua10 - 05.06.2018, 01:33
Re: /gotols /gotosf /gotolv - by Sew_Sumi - 05.06.2018, 01:40

Forum Jump:


Users browsing this thread: 1 Guest(s)