else if(dialogid == SETSTATION)
{
if(response)
{
if(listitem == 0)
{
if(!GetPVarType(playerid, "pHTTPWait"))
{
SetPVarInt(playerid, "pHTTPWait", 1);
format(string, sizeof(string), "%s/radio/radio.php?listgenres=1", SAMP_WEB);
HTTP(playerid, HTTP_GET, string, "", "GenreHTTP");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "HTTP Thread is busy");
}
}
else if(listitem == 1)
{
if(!GetPVarType(playerid, "pHTTPWait"))
{
SetPVarInt(playerid, "pHTTPWait", 1);
format(string, sizeof(string), "%s/top100/Nhac-Tre/IWZ9Z088.html", SAMP_WEB);
HTTP(playerid, HTTP_GET, string, "", "Top50HTTP");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "HTTP Thread is busy");
}
}
else if(listitem == 2)
{
ShowPlayerDialog(playerid,STATIONSEARCH,DIALOG_STYLE_INPUT,"Station Search","Input a search criteria:","Search","Quay lai");
}
else if(listitem == 3)
{
if(IsPlayerInAnyVehicle(playerid))
{
foreach(new i: Player)
{
if(GetPlayerVehicleID(i) != 0 && GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid)) {
//PlayAudioStreamForPlayerEx(i, "http://shoutcast.ng-gaming.net:8000/listen.pls?sid=1");
}
}
//format(stationidv[GetPlayerVehicleID(playerid)], 64, "%s", "http://shoutcast.ng-gaming.net:8000/listen.pls?sid=1");
format(string, sizeof(string), "* %s changes the radio station.", GetPlayerNameEx(playerid), string);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if(GetPVarType(playerid, "pBoomBox"))
{
foreach(new i: Player)
{
if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "pBoomBoxArea")))
{
//PlayAudioStreamForPlayerEx(i, "http://shoutcast.ng-gaming.net:8000/listen.pls?sid=1", GetPVarFloat(playerid, "pBoomBoxX"), GetPVarFloat(playerid, "pBoomBoxY"), GetPVarFloat(playerid, "pBoomBoxZ"), 30.0, 1);
}
}
//SetPVarString(playerid, "pBoomBoxStation", "http://shoutcast.ng-gaming.net:8000/listen.pls?sid=1");
}
else
{
// PlayAudioStreamForPlayerEx(playerid, "http://shoutcast.ng-gaming.net:8000/listen.pls?sid=1");
// SetPVarInt(playerid, "MusicIRadio", 1);
}
}
else if(listitem == 4)
{
if(IsPlayerInAnyVehicle(playerid))
{
foreach(new i: Player)
{
if(GetPlayerVehicleID(i) != 0 && GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid)) {
//PlayAudioStreamForPlayerEx(i, "http://nick.ng-gaming.net:8000/listen.pls");
}
}
// format(stationidv[GetPlayerVehicleID(playerid)], 64, "%s", "http://nick.ng-gaming.net:8000/listen.pls");
format(string, sizeof(string), "* %s changes the radio station.", GetPlayerNameEx(playerid), string);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if(GetPVarType(playerid, "pBoomBox"))
{
foreach(new i: Player)
{
if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "pBoomBoxArea")))
{
// PlayAudioStreamForPlayerEx(i, "http://nick.ng-gaming.net:8000/listen.pls", GetPVarFloat(playerid, "pBoomBoxX"), GetPVarFloat(playerid, "pBoomBoxY"), GetPVarFloat(playerid, "pBoomBoxZ"), 30.0, 1);
}
}
// SetPVarString(playerid, "pBoomBoxStation", "http://nick.ng-gaming.net:8000/listen.pls");
}
else
{
// PlayAudioStreamForPlayerEx(playerid, "http://nick.ng-gaming.net:8000/listen.pls");
// SetPVarInt(playerid, "MusicIRadio", 1);
}
}
else if(listitem == 5)
{
if(GetPVarType(playerid, "pBoomBox"))
{
SendClientMessageEx(playerid, COLOR_GRAD1, "Sorry, this feature is for the MP3 Player or vehicles only.");
}
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You must be using your MP3 to use this feature.");
}
else
{
ShowPlayerDialog(playerid, CUSTOM_URLCHOICE, DIALOG_STYLE_INPUT, "Custom URL", "Please insert a valid audio url stream.", "Dong y", "Quay lai");
}
}
else if(listitem == 6)
{
if(!IsPlayerInAnyVehicle(playerid))
{
if(GetPVarType(playerid, "pBoomBox"))
{
SendClientMessage(playerid, COLOR_WHITE, "You have turned off the boom box.");
foreach(new i: Player)
{ if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "pBoomBoxArea"))) StopAudioStreamForPlayerEx(i); }
DeletePVar(playerid, "pBoomBoxStation");
}
else
{
StopAudioStreamForPlayerEx(playerid);
}
}
else
{
format(string, sizeof(string), "* %s turns off the radio.", GetPlayerNameEx(playerid), string);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
foreach(new i: Player)
{
if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid)) {
StopAudioStreamForPlayerEx(i);
}
}
stationidv[GetPlayerVehicleID(playerid)][0] = 0;
}
}
}
}
The URL (second parameter) to PlayAudioStreamForPlayer must be a valid stream, playlist or an mp3 file. For the "boombox" part we can't possibly know how you handle reproduction because you didn't show us dialog response code for dialog "CUSTOM_URLCHOICE".
As for the "set station" HTTP part, we can't know how you handle reproduction because you didn't show us "GenreHTTP" and "Top50HTTP" callbacks. Also, most of the "PlayAudioStreamForPlayer" code is commented out, so how is it supposed to work then? |
else if(dialogid == CUSTOM_URLCHOICE)
{
if(response)
{
if(isnull(inputtext) || IsNumeric(inputtext)) return SendClientMessageEx(playerid, COLOR_GRAD1, "You have not entered a valid URL.");
PlayAudioStreamForPlayerEx(playerid, inputtext);
SetPVarInt(playerid, "MusicIRadio", 1);
format(string, sizeof(string), "You are now playing %s.", inputtext);
SendClientMessageEx(playerid, COLOR_GREEN, string);
}
else
{
ShowPlayerDialog(playerid,SETSTATION,DIALOG_STYLE_LIST,"Radio Menu","Genres\nTop 50 Stations\nSearch\nK-LSR\nNick's Radio\nTurn radio off","Select", "Close");
}
}
else if(dialogid == GENRES)
{
if(response)
{
if(!GetPVarType(playerid, "pHTTPWait"))
{
format(string, sizeof(string), "%s/radio/radio.php?genre=%d", SAMP_WEB, (listitem+1));
SetPVarInt(playerid, "pSelectGenre", (listitem+1));
SetPVarInt(playerid, "pHTTPWait", 1);
HTTP(playerid, HTTP_GET, string, "", "StationListHTTP");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "HTTP Thread is busy");
}
}
else
{
ShowPlayerDialog(playerid,SETSTATION,DIALOG_STYLE_LIST,"Radio Menu","Genres\nTop 50 Stations\nSearch\nK-LSR\nNick's Radio\nTurn radio off","Select", "Close");
DeletePVar(playerid, "pSelectGenre");
}
}
else if(dialogid == STATIONLIST)
{
if(response)
{
if(!GetPVarType(playerid, "pHTTPWait"))
{
format(string, sizeof(string), "%s/radio/radio.php?genre=%d&station=%d", SAMP_WEB, GetPVarInt(playerid, "pSelectGenre"), (listitem+1));
SetPVarInt(playerid, "pHTTPWait", 1);
SetPVarInt(playerid, "pSelectStation", (listitem+1));
HTTP(playerid, HTTP_GET, string, "", "StationInfoHTTP");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "HTTP Thread is busy");
}
}
else
{
if(!GetPVarType(playerid, "pHTTPWait"))
{
SetPVarInt(playerid, "pHTTPWait", 1);
format(string, sizeof(string), "%s/radio/radio.php?listgenres=1", SAMP_WEB);
HTTP(playerid, HTTP_GET, string, "", "GenreHTTP");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "HTTP Thread is busy");
}
}
}
else if(dialogid == TOP50LIST)
{
if(!response)
{
ShowPlayerDialog(playerid,SETSTATION,DIALOG_STYLE_LIST,"Radio Menu","Genres\nTop 50 Stations\nSearch\nK-LSR\nNick's Radio\nTurn radio off","Select", "Close");
}
else
{
if(!GetPVarType(playerid, "pHTTPWait"))
{
format(string, sizeof(string), "%s/radio/radio.php?top50=1&station=%d", SAMP_WEB, (listitem+1));
SetPVarInt(playerid, "pHTTPWait", 1);
SetPVarInt(playerid, "pSelectStation", (listitem+1));
HTTP(playerid, HTTP_GET, string, "", "Top50InfoHTTP");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "HTTP Thread is busy");
}
}
}
else if(dialogid == STATIONLISTEN)
{
if(response)
{
if(!GetPVarType(playerid, "pHTTPWait"))
{
format(string, sizeof(string), "%s/radio/radio.php?genre=%d&station=%d&listen=1", SAMP_WEB, GetPVarInt(playerid, "pSelectGenre"), GetPVarInt(playerid, "pSelectStation"));
SetPVarInt(playerid, "pHTTPWait", 1);
HTTP(playerid, HTTP_GET, string, "", "StationSelectHTTP");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "HTTP Thread is busy");
}
}
else
{
if(!GetPVarType(playerid, "pHTTPWait"))
{
format(string, sizeof(string), "%s/radio/radio.php?genre=%d", SAMP_WEB, GetPVarInt(playerid, "pSelectGenre"));
SetPVarInt(playerid, "pHTTPWait", 1);
HTTP(playerid, HTTP_GET, string, "", "StationListHTTP");
DeletePVar(playerid, "pSelectStation");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "HTTP Thread is busy");
}
}
}
else if(dialogid == TOP50LISTEN)
{
if(!response)
{
if(!GetPVarType(playerid, "pHTTPWait"))
{
DeletePVar(playerid, "pSelectStation");
SetPVarInt(playerid, "pHTTPWait", 1);
format(string, sizeof(string), "%s/radio/radio.php?top50=1", SAMP_WEB);
HTTP(playerid, HTTP_GET, string, "", "Top50HTTP");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "HTTP Thread is busy");
}
}
else
{
if(!GetPVarType(playerid, "pHTTPWait"))
{
format(string, sizeof(string), "%s/radio/radio.php?top50=1&station=%d&listen=1", SAMP_WEB, GetPVarInt(playerid, "pSelectStation"));
SetPVarInt(playerid, "pHTTPWait", 1);
HTTP(playerid, HTTP_GET, string, "", "StationSelectHTTP");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "HTTP Thread is busy");
}
}
}
else if(dialogid == STATIONSEARCH)
{
if(response)
{
if(strlen(inputtext) < 0 || strlen(inputtext) > 64)
{
ShowPlayerDialog(playerid,SETSTATION,DIALOG_STYLE_LIST,"Radio Menu","Genres\nTop 50 Stations\nSearch\nK-LSR\nNick's Radio\nTurn radio off","Select", "Close");
}
else
{
if(!GetPVarType(playerid, "pHTTPWait"))
{
format(string, sizeof(string), "%s/tim-kiem/bai-hat.html?q=%s", SAMP_WEB, inputtext);
SetPVarString(playerid, "pSearchStation", inputtext);
SetPVarInt(playerid, "pHTTPWait", 1);
ShowNoticeGUIFrame(playerid, 6);
HTTP(playerid, HTTP_GET, string, "", "StationSearchHTTP");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "HTTP Thread is busy");
}
}
}
else
{
ShowPlayerDialog(playerid,SETSTATION,DIALOG_STYLE_LIST,"Radio Menu","Genres\nTop 50 Stations\nSearch\nK-LSR\nNick's Radio\nTurn radio off","Select", "Close");
}
}
else if(dialogid == STATIONSEARCHLIST)
{
if(response)
{
if(!GetPVarType(playerid, "pHTTPWait"))
{
GetPVarString(playerid, "pSearchStation", string, sizeof(string));
format(string, sizeof(string), "%s/tim-kiem/bai-hat.html?q=%s&stattion=%d", SAMP_WEB, string, (listitem+1));
SetPVarInt(playerid, "pHTTPWait", 1);
ShowNoticeGUIFrame(playerid, 6);
SetPVarInt(playerid, "pSelectStation", (listitem+1));
HTTP(playerid, HTTP_GET, string, "", "StationSearchInfoHTTP");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "HTTP Thread is busy");
}
}
else
{
ShowPlayerDialog(playerid,SETSTATION,DIALOG_STYLE_LIST,"Radio Menu","Genres\nTop 50 Stations\nSearch\nK-LSR\nNick's Radio\nTurn radio off","Select", "Close");
}
}
else if(dialogid == STATIONSEARCHLISTEN)
{
if(response)
{
if(!GetPVarType(playerid, "pHTTPWait"))
{
GetPVarString(playerid, "pSearchStation", string, sizeof(string));
format(string, sizeof(string), "%s/radio/radio.php?search=%s&station=%d&listen=1", SAMP_WEB, string, GetPVarInt(playerid, "pSelectStation"));
SetPVarInt(playerid, "pHTTPWait", 1);
ShowNoticeGUIFrame(playerid, 6);
HTTP(playerid, HTTP_GET, string, "", "StationSelectHTTP");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "HTTP Thread is busy");
}
}
else
{
if(!GetPVarType(playerid, "pHTTPWait"))
{
GetPVarString(playerid, "pSearchStation", string, sizeof(string));
format(string, sizeof(string), "%s/radio/radio.php?search=%s", SAMP_WEB, string);
ShowNoticeGUIFrame(playerid, 6);
HTTP(playerid, HTTP_GET, string, "", "StationSearchHTTP");
DeletePVar(playerid, "pSelectStation");
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "HTTP Thread is busy");
}
}
}
Without full code we can't help you with any of this, I'm sorry. There are too many missing HTTP callbacks. I believe you are trying to link a Vietnamese music website to your "radio player". Check if the site has changed in the meantime, if it has, then your "url hacks": "/radio/radio.php?listgenres=1", etc. won't work.
Also, like I said, there is no "PlayAudioStreamForPlayer" to play the audio stream to the player so it will never work, unless you have put it in one of your "HTTP" callbacks which you haven't shown us. |
CMD:setstation(playerid, params[])
{
if(GetPVarType(playerid, "pBoomBox"))
{
if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) return SendClientMessage(playerid, COLOR_GREY, " You must be crouched to turnon your boombox.");
if(!IsPlayerInRangeOfPoint(playerid, 3.0, GetPVarFloat(playerid, "pBoomBoxX"), GetPVarFloat(playerid, "pBoomBoxY"), GetPVarFloat(playerid, "pBoomBoxZ"))) return SendClientMessageEx(playerid, COLOR_WHITE, "You're not near in your BoomBox");
{
ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_START, DIALOG_STYLE_LIST, "Boombox", "Search by name\nFind by genre\nPlace Music URL", "Select", "Cancel");
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, " You don't have a boombox place on the floor");
}
return 1;
}
CMD:pickupboombox(playerid, params[])
{
if(GetPVarType(playerid, "pBoomBox"))
{
if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) return SendClientMessage(playerid, COLOR_GREY, " You must be crouched to pick a the boombox.");
if(!IsPlayerInRangeOfPoint(playerid, 3.0, GetPVarFloat(playerid, "pBoomBoxX"), GetPVarFloat(playerid, "pBoomBoxY"), GetPVarFloat(playerid, "pBoomBoxZ"))) return SendClientMessageEx(playerid, COLOR_WHITE, "You're not near in your BoomBox");
DestroyDynamicObject(GetPVarInt(playerid, "pBoomBox"));
DestroyDynamic3DTextLabel(Text3D:GetPVarInt(playerid, "pBoomBoxLabel"));
DeletePVar(playerid, "pBoomBox"); DeletePVar(playerid, "pBoomBoxStation"); DeletePVar(playerid, "pBoomBoxLabel");
DeletePVar(playerid, "pBoomBoxX"); DeletePVar(playerid, "pBoomBoxY"); DeletePVar(playerid, "pBoomBoxZ");
if(GetPVarType(playerid, "pBoomBoxArea"))
{
new string[128];
format(string, sizeof(string), "* %s has pickup their boombox.", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
foreach(Player, i)
{
if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "pBoomBoxArea")))
{
StopAudioStreamForPlayerEx(i);
SendClientMessage(i, COLOR_PURPLE, string);
}
}
DeletePVar(playerid, "pBoomBoxArea");
}
SendClientMessage(playerid, COLOR_WHITE, "You've pickup your boombox!");
}
else
{
foreach(Player, i)
{
if(GetPVarType(i, "pBoomBox"))
{
if(GetPVarInt(i, "pBoomBoxVW") == GetPlayerVirtualWorld(playerid) && GetPVarInt(i, "pBoomBoxInt") == GetPlayerInterior(playerid) && IsPlayerInRangeOfPoint(playerid, 5.0, GetPVarFloat(i, "pBoomBoxX"), GetPVarFloat(i, "pBoomBoxY"), GetPVarFloat(i, "pBoomBoxZ")))
{
if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) return SendClientMessage(playerid, COLOR_GREY, " You must be crouched to pick a the boombox.");
if(!IsPlayerInRangeOfPoint(playerid, 3.0, GetPVarFloat(playerid, "pBoomBoxX"), GetPVarFloat(playerid, "pBoomBoxY"), GetPVarFloat(playerid, "pBoomBoxZ"))) return SendClientMessageEx(playerid, COLOR_WHITE, "You're not near in your BoomBox");
DestroyDynamicObject(GetPVarInt(i, "pBoomBox"));
DestroyDynamic3DTextLabel(Text3D:GetPVarInt(i, "pBoomBoxLabel"));
DeletePVar(i, "pBoomBox");
DeletePVar(i, "pBoomBoxStation");
DeletePVar(i, "pBoomBoxLabel");
DeletePVar(i, "pBoomBoxX");
DeletePVar(i, "pBoomBoxY");
DeletePVar(i, "pBoomBoxZ");
DeletePVar(i, "pBoomBoxInt");
DeletePVar(i, "pBoomBoxVW");
new string[128];
if(GetPVarType(i, "pBoomBoxArea"))
{
format(string, sizeof(string), "* %s has pickup their boombox.", GetPlayerNameEx(playerid));
for(new x=0; x<MAX_PLAYERS; x++)
{
if(IsPlayerInDynamicArea(x, GetPVarInt(x, "pBoomBoxArea")))
{
StopAudioStreamForPlayerEx(x);
SendClientMessage(x, COLOR_PURPLE, string);
}
}
DeletePVar(i, "pBoomBoxArea");
}
format(string, sizeof(string), "%s has pickup their boombox!", GetPlayerNameEx(playerid));
SendClientMessage(i, COLOR_WHITE, string);
return 1;
}
}
}
SendClientMessage(playerid, COLOR_WHITE, "You don't have a boombox or you are not near one to be pickup");
}
return 1;
}
CMD:placeboombox(playerid, params[])
{
if(PlayerInfo[playerid][pLevel] > 1)
{
if(GetPVarInt(playerid, "IsInArena") >= 0) return SendClientMessageEx(playerid, COLOR_WHITE, "You can't do this while being in an arena!");
// if(WatchingTV[playerid] != 0) return SendClientMessageEx(playerid, COLOR_GREY, "You can not do this while watching TV!");
if(GetPVarInt(playerid, "Injured") == 1 || PlayerInfo[playerid][pHospital] == 1 || IsPlayerInAnyVehicle(playerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "You can't do this right now.");
if(GetPVarType(playerid, "pBoomBox")) return SendClientMessageEx(playerid, COLOR_WHITE, "You already have a boombox out, use /pickupboombox.");
foreach(Player, i)
{
if(GetPVarType(i, "pBoomBox"))
{
if(IsPlayerInRangeOfPoint(playerid, 30.0, GetPVarFloat(i, "pBoomBoxX"), GetPVarFloat(i, "pBoomBoxY"), GetPVarFloat(i, "pBoomBoxZ")))
{
SendClientMessage(playerid, COLOR_WHITE, "You are in range of another boombox, you can't place one here!");
return 1;
}
}
}
new string[128];
format(string, sizeof(string), "%s has placed a boombox! on the floor", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
ApplyAnimation(playerid,"BOMBER","BOM_Plant_Crouch_In", 4.0, 0, 0, 0, 0, 0, 1);
x += (2 * floatsin(-a, degrees));
y += (2 * floatcos(-a, degrees));
z -= 1.0;
SetPVarInt(playerid, "pBoomBox", CreateDynamicObject(2226, x, y, z, 0.0, 0.0, 0.0, .worldid = GetPlayerVirtualWorld(playerid), .interiorid = GetPlayerInterior(playerid)));
SetPVarFloat(playerid, "pBoomBoxX", x); SetPVarFloat(playerid, "pBoomBoxY", y); SetPVarFloat(playerid, "pBoomBoxZ", z);
format(string, sizeof(string), "%s's BoomBox\n{FF0000}/turnon {FFFF00}or\n{FF0000}/pickupboombox", GetPlayerNameEx(playerid));
SetPVarInt(playerid, "pBoomBoxLabel", _:CreateDynamic3DTextLabel(string, COLOR_YELLOW, x, y, z+0.6, 5.0, .worldid = GetPlayerVirtualWorld(playerid), .interiorid = GetPlayerInterior(playerid)));
SetPVarInt(playerid, "pBoomBoxArea", CreateDynamicSphere(x, y, z, 30.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid)));
SetPVarInt(playerid, "pBoomBoxInt", GetPlayerInterior(playerid));
SetPVarInt(playerid, "pBoomBoxVW", GetPlayerVirtualWorld(playerid));
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not Level 1+");
}
return 1;
}