- 0
Bug /vipname
-
Similar Content
-
- 7 replies
- 688 views
-
- 10 answers
- 3.306 views
-
-
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
andreyctn
Salut.Am o problema la la /vipname am serverul meu propiu< imi fac vehiculul vip si cand ii dau /vipname imi spune Poti folosi aceasta comanda doar pe vehicule VIP.
Poate am gresit cu ceva la Comanda ! Uitati
CMD:vipname(playerid, params[])
Edited by andreyctn{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SCM(playerid, COLOR_WHITE, "Nu esti intr-un vehicul.");
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[IsAnOwnableCar(vehicleid)][pUpgrade] == 0)
{
new query[256],text[20],test[20];
if(sscanf(params, "s[20]", text)) return SCM(playerid, COLOR_WHITE, "{FF0000}Usage: {FFFFFF}/vipname [Text]");
if(strlen(text) > 20) return SendClientMessage(playerid, COLOR_WHITE, "Maximum 20 characters are allowed.");
if(strlen(text) == 0) return 1;
SetVipText(playerid, vehicleid);
mysql_real_escape_string(text, test);
mysql_format(SQL, query, sizeof(query), "UPDATE `cars` SET `Vip`='%s' WHERE `ID`='%d'", test, CarInfo[IsAnOwnableCar(vehicleid)]);
mysql_tquery(SQL, query, "", "");
format(query, sizeof(query), "Text pentru vehicul setat: %s", text);
SendClientMessage(playerid, COLOR_ADMCOMMANDS, query);
}
else return SCM(playerid, COLOR_WHITE, "Poti folosi aceasta comanda doar pe vehicule VIP.");
}
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