Jump to content
  • 0

Am nevoie si eu de un fs sa bag niste teleporturi


alin_samp1996

Question

1 answer to this question

Recommended Posts

Nu trebuie un FS, poti sa le bagi in GM, langa celelalte care sunt la OnPlayerCommandText.

Un teleport din GM arata cam asa:

if( strcmp( cmdtext, "/teleport", true ) == 0 )
{
    SetPlayerPos( playerid, X, Y, Z ); //seteaza pozitia
    //alte chestii
}
tu doar trebuie sa-i dai copy de la if pana la } si sa-i dai paste deasupra la if si va veni cam asa:
if( strcmp( cmdtext, "/teleport_nou", true ) == 0 )
{
    SetPlayerPos( playerid, X, Y, Z ); //seteaza pozitia teleportului nou
    //alte chestii
    return 1;
}
if( strcmp( cmdtext, "/teleport", true ) == 0 )
{
    SetPlayerPos( playerid, X, Y, Z ); //seteaza pozitia
    //alte chestii
    return 1;
}

Iti recomanda sa te uiti prin alte scripturi care contin comenzi/teleporturi ca sa inveti cum se face, si poti sa te uiti si pe http://wiki.sa-mp.com - aici gasesti explicatia fiecarei functii.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.