Jump to content
  • 0

Cum fac o comanda care te da intru interior dupa in altul


Question

Posted

Deci cum sa fac o comanda care te da intru interior trebue sa stai in acel interior 5 secunde si dupa te da alt undeva

De exemplu comanda /flylv cand o tastezi fiind intru anumit loc sa te dea in avion si dupa 5 secunde sa te dea in lv

3 answers to this question

Recommended Posts

Posted

[pawn]

forward TimerAvion(playerid); // La inceputul scriptului

if(strcmp(cmd, "/flylv", true) == 0) // La OnPlayerCommandText

{

    SetPlayerPos(playerid, X, Y, Z);

    SetPlayerInterior(playerid, A);

    SendClientMessage(playerid, COLOR_WHITE, "Mesaj");

    SetTimerEx("TimerAvion", 5000, false, "d", playerid);

}

public TimerAvion(playerid) // deasupra OnGameModeInit

{

    SetPlayerPos(playerid, X, Y, Z);

    SetPlayerInterior(playerid, A);

    SendClientMessage(playerid, COLOR_WHITE, "Mesaj");

    return 1;

}

[/pawn]

Posted

[pawn]

forward TimerAvion(playerid); // La inceputul scriptului

if(strcmp(cmd, "/flylv", true) == 0) // La OnPlayerCommandText

{

    SetPlayerPos(playerid, X, Y, Z);

    SetPlayerInterior(playerid, A);

    SendClientMessage(playerid, COLOR_WHITE, "Mesaj");

    SetTimerEx("TimerAvion", 5000, false, "d", playerid);

}

public TimerAvion(playerid) // deasupra OnGameModeInit

{

    SetPlayerPos(playerid, X, Y, Z);

    SetPlayerInterior(playerid, A);

    SendClientMessage(playerid, COLOR_WHITE, "Mesaj");

    return 1;

}

[/pawn]

am folosit-o si eu mersi :D

I'm back haha !

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.