[Pomoc]/ahelp

Započeo caupton, Mart 22, 2011, 22:55:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:GTA RP
Detaljan opis problema:Moze li mi neko staviti ove /ahelp komande u dijalog hitno mi je hvala unapred
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):


if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
if (PlayerInfo[playerid][pAdmin] >= 1)
{
   SendClientMessage(playerid, COLOR_WHITE,"*** Duznost *** /adminduty");
SendClientMessage(playerid, COLOR_GRAD1,"*** Level 1 Administrator *** /fly /setskin /givenitro /check /setint /setvw /mute /kick /kickres /masked /unfreeze /learn");
SendClientMessage(playerid, COLOR_GRAD1,"*** Level 1 Administrator *** /ban /slap /goto /a (/ao)oc /name /setskin /ajail /freeze /specplayer /checkweapons");
}
if (PlayerInfo[playerid][pAdmin] >= 2)
{
SendClientMessage(playerid, COLOR_GRAD2,"*** Level 2 Administrator *** /skydive /noooc /setteam /bigears /respawnthiscar(/rtc) /agl /setjob /update");
SendClientMessage(playerid, COLOR_GRAD2,"*** Level 2 Administrator *** /gotoaero /gotoburg");
}
if (PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, COLOR_GRAD3,"*** Level 3 Administrator *** /cnnn /fourdive /gotols /prison /unprison /aunlock /fuelcars /edit /vehslap");
SendClientMessage(playerid, COLOR_GRAD4,"*** Level 3 Administrator *** /mark /gotomark /gotolv /gotosf /gethere /oldcar /gotocar /getcar /setage");
SendClientMessage(playerid, COLOR_GRAD4,"*** Level 3 Administrator *** /respawnallcars /respawnrentbikes /respawnrentcars /unban /unbanip /fixveh");
}
if (PlayerInfo[playerid][pAdmin] >= 4)
{
   SendClientMessage(playerid, COLOR_GRAD4,"*** Level 4 Administrator *** /mole /logout /logoutpl /logoutall /asellhouse /asellbiz /sellsbiz /setchamp /mk");
   SendClientMessage(playerid, COLOR_GRAD4,"*** Level 4 Administrator *** /getallhere /sethp /setarmor /forceskin /explode /supervehslap");
}
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
SendClientMessage(playerid, COLOR_GRAD5,"*** Direktor ***  /weather /weatherall /makeircadmin /makeadmin /makeleader /bizentrance /sbizentrance");
SendClientMessage(playerid, COLOR_GRAD5,"*** Direktor *** /asellcar /setstat /money");
SendClientMessage(playerid, COLOR_GRAD5,"*** Direktor *** /givemoney /givegun /crash /changename /houseentrance /housexit /tod /startlotto");
}
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
SendClientMessage(playerid, COLOR_GRAD6,"*** Vlasnik Servera *** /apark /racehelp /supermen");
}
}
return 1;
}
Poslednja Izmena: Mart 22, 2011, 23:28:19 POSLE PODNE od [AG] gonss.pwn bg


Samo ako nije nekom problem da mi to uradi. :(

Brate stavi GTA RP a ne BFRP,neko mozda ne zna kakav je BFRP mod,i stavi komandu u # (code)

molim vas da mi neko to uradi..PS:Hvala u napred


Kar!k3 Probao sam po ovom tutu ali nece da radi ;(

#define AdminPomoc 999//999 ti je ID dialoga,ti stavi koji hoces...


CMD:ahelp(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,-1,"Niste ovlasteni!");
if(PlayerInfo[playerid][pAdmin] == 1) return ShowPlayerDialog(playerid,AdminPomoc,DIALOG_STYLE_MSGBOX,"Admin pomoc[lvl 1]","Komanda1\nKomanda2""Ok","");
if(PlayerInfo[playerid][pAdmin] == 2) return ShowPlayerDialog(playerid,AdminPomoc,DIALOG_STYLE_MSGBOX,"Admin pomoc[lvl 2]","Komanda1\nKomanda2\nKomanda3""Ok","");  
return true;
}



Tako bi ti to otprilike islo...

Posto vidim da ne koristis Zcmd,umjesto CMD:ahelp(playerid, params[]) stavi if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
Poslednja Izmena: Mart 23, 2011, 13:08:58 POSLE PODNE od Aleksandar

aleksandre uradio sam ja tako ali imam silne erore.. :S

Ako si stavio ovo kao ja,mora ti raditi...

if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)   

if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,-1,"Niste ovlasteni!"); 
if(PlayerInfo[playerid][pAdmin] == 1) return ShowPlayerDialog(playerid,AdminPomoc,DIALOG_STYLE_MSGBOX,"Admin pomoc[lvl 1]","Komanda1\nKomanda2""Ok",""); 
if(PlayerInfo[playerid][pAdmin] == 2) return ShowPlayerDialog(playerid,AdminPomoc,DIALOG_STYLE_MSGBOX,"Admin pomoc[lvl 2]","Komanda1\nKomanda2\nKomanda3""Ok","");   
return true; 


I ako ima erore Postaj Kako mozemo da znamo u cemu je problem Ako nam Nepokazes Koi su to ERORI...

------------------------------------------------------------------------------
Zahvaljujem Se Snich_Wolf-u Zato sto Mi je mnogo Pomogo oko Skriptanja...Snich Hvala brt <3 xD