30.04.2017, 14:55
then
Code:
CMD:myveh(playerid, params[]) { if(GetPVarInt(playerid, "Admin") >= 7) { if(GetPVarInt(playerid, "PlayerLogged") == 0) return SendClientMessage(playerid, COLOR_WHITE, "You must be logged in to use this."); if(IsPlayerConnected(playerid)) { new modelname[20], color1, color2; if(sscanf(params, "s[20]dd", modelname, color1, color2)) SendClientMessage(playerid, COLOR_WHITE, "Usage: /myveh [modelid] [color1] [color2]"); if(!strcmp(modelname, "Rancher", true)) { // Spawn a rancher here. } //and so on with the other names u wanna add. } } else SendClientMessage(playerid, COLOR_ERROR, "You do not have access to this command!"); return 1; }