- 0
Problema vcreate
-
Similar Content
-
Problema turf
By Soryn.,
- 2 answers
- 222 views
-
- 1 reply
- 177 views
-
Problema
By ImJustSlim,
- 3 answers
- 284 views
-
- 2 replies
- 157 views
-
- 1 answer
- 305 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Sk3by
CMD:vcreate(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first."); if(PlayerInfo[playerid][pAdmin] >= 5) { new id,model,string[128],giveplayer[30],total; if(sscanf(params, "ui", id, model)) return SCM(playerid, COLOR_GREY, "Syntax:{FFFFFF} /vcreate [playerid] [model]"); if(model < 400 || model > 611) return SCM(playerid, COLOR_GREY, "Invalid car ID! (400-611)"); if(IsPlayerConnected(id)) { if(id != INVALID_PLAYER_ID) { for(new v; v < MAX_PERSONAL_VEHICLES; v++) { if(PlayerInfo[id][pCar][v] != -1) total++; } if(total+1 > PlayerInfo[id][pCarSlots]) { SendClientMessage(playerid, COLOR_GREY, "This player have all vehicles slots full."); return 1; } GetPlayerName(id, giveplayer, sizeof(giveplayer)); CreateVEH[playerid] = model; CreateVEHID[playerid] = id; format(string, sizeof(string), "Esti sigur ca vrei sa-i dai lui %s masina %s?\n\nAbuzul de aceasta comanda poate duce la scoaterea ta din staff!", giveplayer, aVehicleNames[model - 400]); ShowPlayerDialog(playerid, DIALOG_VCREATE, DIALOG_STYLE_MSGBOX, "Personal Vehicle Create", string, "Da", "Nu"); } } else return SendClientMessage(playerid, COLOR_GREY, "Player not connected."); } else return SendClientMessage(playerid, COLOR_LIGHTGREEN3, AdminOnly); return 1; }
Link to comment
Share on other sites
11 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.