- 0
EDIT: Tot ce inseamna/use Spawn nu functioneaza: /car /jetpack /nrg /v E.T.C.
-
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
[.E.m.O.]K1DDU
Hello ^^
Am o problema cu o comanda :|
Inainte nu functionau comenzile care foloseau SSCANF am bagat SSCANF for 0.3d R2 acuma functioneaza, a mai ramas comanda /car care nu functioneaza de loc!
Scriu comanda /car sultan, apare doar in chat "Sa spawanat vehiculul Sultan Culoare1: n......." dar vehicolul nu se spawneaza xD
Ma poate ajuta careva?
Mai jos veti gasi si comanda /car
Inainte pe 0.3c functiona totul perfect!
[pawn]CMD:car(playerid,params[]) {
if(IsPlayerInAnyVehicle(playerid)){
SendClientMessage(playerid,red, "Already drive a car. Out of the car and try again.");
}
else
if(PlayerInfo[ playerid ][Level] >= 0) {
new tmp[256], tmp2[256], tmp3[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); tmp3 = strtok(params,Index);
if(!strlen(tmp)) return SendClientMessage(playerid, red, "USAGE: /car [Modelid/Name] [colour1] [colour2]");
new car, colour1, colour2, string[128];
if(!IsNumeric(tmp)) car = GetVehicleModelIDFromName(tmp); else car = strval(tmp);
if(car < 400 || car > 611) return SendClientMessage(playerid, red, "ERROR: Invalid Vehicle Model");
if(!strlen(tmp2)) colour1 = random(126); else colour1 = strval(tmp2);
if(!strlen(tmp3)) colour2 = random(126); else colour2 = strval(tmp3);
if(PlayerInfo[ playerid ][pCar] != -1 && !IsPlayerAdmin(playerid) ) CarDeleter(PlayerInfo[ playerid ][pCar]);
new LVehicleID,Float:X,Float:Y,Float:Z, Float:Angle,int1; GetPlayerPos(playerid, X,Y,Z); GetPlayerFacingAngle(playerid,Angle); int1 = GetPlayerInterior(playerid);
LVehicleID = AddStaticVehicleEx(car, X+3,Y,Z, Angle, colour1, colour2, 60); PutPlayerInVehicle(playerid, LVehicleID, 0); LinkVehicleToInterior(LVehicleID,int1);
PlayerInfo[ playerid ][pCar] = LVehicleID;
format(string, sizeof(string), "%s spawned a \"%s\" (Model:%d) colour (%d, %d), at %0.2f, %0.2f, %0.2f", pName(playerid), VehicleNames[car-400], car, colour1, colour2, X, Y, Z);
SaveToFile("CarSpawns",string);
format(string, sizeof(string), "{00C0FF}You have spawned a {F81414}\"%s\" {F3FF02}(Model:%d) {00C0FF}colour {B700FF}(%d, %d)", VehicleNames[car-400], car, colour1, colour2);
return SendClientMessage(playerid,lightblue, string);
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
return 1;
}[/pawn]
Multumesc frumos celui ce ma va ajuta ^^
F*ck everybody who want and who try to judge me for who I am, b*star*s !
2 answers to this question
Recommended Posts