07.11.2012, 12:36
1.
How i can do that in dcmd , so /buyc sau /buyclotes work ?
2.
And that , how i can do that in DCMD ?
Thank's in advance !
pawn Код:
if(strcmp(cmd, "/buyc", true) == 0 || strcmp(cmd, "/buyclotes", true) == 0)
{
2.
pawn Код:
//=============================================================================================================================================================
// = Comanda: /r(adio)c(hannel)
//=============================================================================================================================================================
if (strcmp(cmd, "/rc", true) == 0 || strcmp(cmd, "/radiochannel", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid) == 1 && GetPlayerVehicleSeat(playerid) == 0)
{
tmp = strtok(cmdtext, idx);
if(strlen(tmp) == 0) return SendClientMessage(playerid, COLOR_WHITE, "» Scrie: /r(adio)c(hannel) on / off");
//=============================================================================================================================================================
// = Comanda: /r(adio)c(hannel) off
//=============================================================================================================================================================
else if(strcmp(tmp, "off", true) == 0)
{
vehid = GetPlayerVehicleID(playerid);
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i, vehid))
{
StopAudioStreamForPlayer(i);
}
}
return 1;
}
//=============================================================================================================================================================
// = Comanda: /r(adio)c(hannel) on
//=============================================================================================================================================================
else if(strcmp(tmp, "on", true) == 0)
{
ShowPlayerDialog(playerid, 9998, DIALOG_STYLE_LIST, "GameFront Radio System", "{ffd700}Radio: {ffffff}Dance\n{ffd700}Radio: {ffffff}Manele\n{ffd700}Radio: {ffffff}Populara\n{ffd700}Radio: {ffffff}DubSTEP\n{ffd700}Radio: {ffffff}House\n{ffd700}Radio: {ffffff}Hip-Hop\n{ffd700}Radio: {ffffff}RadioZU\n{ffd700}Radio: {ff0000}OFFLINE", "Ok", "");
return 1;
}
SendClientMessage(playerid, COLOR_WHITE, "» Scrie: /r(adio)c(hannel) on / off");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "{30a030}[GameFront]: {ffffff}Ne pare rau, dar trebuie sa te afli intr-un Vehicul pentru a utiliza aceasta comanda.");
return 1;
}
}
Thank's in advance !