- 0
Bug /vipname
-
Similar Content
-
- 14 answers
- 591 views
-
- 4 replies
- 396 views
-
- 9 replies
- 447 views
-
- 1 reply
- 349 views
-
- 2 answers
- 518 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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;
}
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.