- 0
Problema la Timer.
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Florin.279
Salut, m-am gandit eu sa creez un sistem in care un player sa foloseasca comanda "/createbike" si in acel moment ii apare pe ecran ca bicla lui e in proces de creeare si sa ia freeze in acel timp. Problema este ca nu sunt destul de priceput incat sa-mi dau seama din ce cauza nu ia si unfreeze dupa timpul scurs. Am nevoie de ajutor la asta.
Edit: Am uitat sa mentionez ca sunt incepator.
asta e script-ul :
YCMD:createbike(playerid, params[], help) {
Edited by Florin.279if(!PlayerToPoint(20.0, playerid, 1800.7952,-1863.8851,13.5745)) return SCM(playerid, COLOR_GREY, "Nu esti in zona spawn-ului !");
if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti aceasta comanda dintr-un vehicul!");
GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~n~~n~~w~YOUR BIKE IS IN THE PROCESS OF BEING CREATED...",15000,3);
TogglePlayerControllable(playerid, 0);
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
SetTimerEx("Carspawn", 12000, 0, "d", playerid);
new carid = CreateVehicleEx(510, X,Y,Z, 0.0, 1, 1, 300);
Gas[carid] = 100;
SetVehicleNumberPlate(carid, "AdmCar");
Carspawn[carid] = carid;
Freezed[playerid] = 1;
return 1;
9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now