- 0
Problema /vplate
-
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
muresan_emanuel2001
Am facut un sistem de masini pe mysql, merg toate comenzile(/vmodel /vcolor /vcreate /vsave /vpark) dar /vplate, imi pune numar de ala default
cum e in single player, nu am mai patit asa ceva.
if(strcmp(cmd, "/vplate", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 8) return SendClientMessage(playerid, COLOR_SERVER3, "Nu ai acces la aceasta comanda !");
new str[512],value;
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: You're not in a vehicle.");
new tmpcar = GetPlayerVehicleID(playerid);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /vplate [license-plate]");
return 1;
}
value = strval(tmp);
//StaticVeh[tmpcar][vLicense] = value;
mysql_format(handle,str,512,"UPDATE `staticveh` SET `License`='%s' WHERE `ID`='%d'",value,tmpcar);
mysql_tquery(handle,str, "", "");
DestroyVehicle(tmpcar);
CreateVehicle(StaticVeh[tmpcar][vModel],StaticVeh[tmpcar][vLocationx],StaticVeh[tmpcar][vLocationy],StaticVeh[tmpcar][vLocationz]+1.0,StaticVeh[tmpcar][vAngle],StaticVeh[tmpcar][vColorOne],StaticVeh[tmpcar][vColorTwo],StaticVeh[tmpcar][vRespawnDelay]);
SetVehicleNumberPlate(tmpcar,StaticVeh[tmpcar][vLicense]);
PutPlayerInVehicle(playerid, tmpcar, 0);
return 1;
}
2 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