Jump to content

Question

Posted

Vreau sa pun aceasta comanda in GameModul meu dar nu stiu unde :

if(strcmp(cmdtext,"/police",true)==0)

{

new vehicleid = GetPlayerVehicleID(playerid);

new State = GetPlayerState(playerid);

if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)

{

GameTextForPlayer(playerid,"Welecom to Police Sation",4000,6);

return SetVehiclePos(vehicleid,1554.7692,-1676.1294,16.1953);

}

SetPlayerPos(playerid,1554.7692,-1676.1294,16.1953);

GameTextForPlayer(playerid,"Welecom to Police Sation",4000,6);

return 1;

}

-Am incercat sa o pun la coada GM-ului, dar cand apas F5 se blocheaza cateva secunde, iar dupa aceea nu se intampla nimic.

Daca comanda nu este buna, va rog sa imi spuneti cum ar trebui creata o comanda teleport.Multumesc.

2 answers to this question

Recommended Posts

Posted

1.Vad ca esti nou pe forum si in scripting citeste si tu un pic pe aici: http://www.sa-mp.ro/forum/index.php/topic,2.0.html

2.Dai CTRL+F pui acolo OnPlayerCommandText si o pui acolo la onplayercommandtext

Fara reclama in semnatura!

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.