[Pomoc]Helper

15. Dec. 2012. Zaključano
318
pregleda
7
postova
Apokalipsa
5
Underboss
15. Dec. 2012.
Skripta koju koristim:SE:RP Edit
Detaljan opis problema:Hocu da namestim da helperima mogu davati level 1,2,3,4 a ne da mogu npr helper level 100 ili slicno.Nego samo da bude 1,2,3,4
Dio skripte:
	if(strcmp(cmd, "/makehelper", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristenje: /makehelper [ID Igraca/Dio Imena]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(PlayerInfo >= 1340)
{
    if(IsPlayerConnected(para1))
    {
        if(para1 != INVALID_PLAYER_ID)
        {
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo = level;
printf("AdmCmd: Admin je %s-u dao odredjeni gm level.", sendername, giveplayer, level);
format(string, sizeof(string), "Admin %s vam je dao Helper Level %d.", sendername,level);
SendClientMessage(para1, COLOR_LIGHTRED, string);
format(string, sizeof(string), "Dali ste %s-u Helper Level %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "[BM:RP] Niste ovlasteni da koristite ovu komandu!");
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Nitro
5
Godfather
15. Dec. 2012.
	if(strcmp(cmd, "/makehelper", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristenje: /makehelper [ID Igraca/Dio Imena]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(PlayerInfo >= 1340)
{
    if(IsPlayerConnected(para1))
    {
                                if(strval(tmp) <= 4)
                                {
        if(para1 != INVALID_PLAYER_ID)
        {
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo = level;
printf("AdmCmd: Admin je %s-u dao odredjeni gm level.", sendername, giveplayer, level);
format(string, sizeof(string), "Admin %s vam je dao Helper Level %d.", sendername,level);
SendClientMessage(para1, COLOR_LIGHTRED, string);
format(string, sizeof(string), "Dali ste %s-u Helper Level %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
}
                                }
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "[BM:RP] Niste ovlasteni da koristite ovu komandu!");
}
}
return 1;
}


Try this 🙂
Apokalipsa
5
Underboss
15. Dec. 2012.
Hvala ti radi lepo.
Ubacivao sam sada VIP System i izbacuje mi ove errore:
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(2728) : error 004: function "SafeJBC_GivePlayerMoney" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(2753) : error 004: function "SafeJBC_GivePlayerMoney" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(2782) : error 004: function "SafeJBC_ResetPlayerWeapons" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(2783) : error 004: function "SafeJBC_GivePlayerWeapon" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(2806) : error 004: function "SafeJBC_ResetPlayerWeapons" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(2869) : error 004: function "SetPlayerCriminal" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3350) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3354) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3365) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3377) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3381) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3385) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3389) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3393) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3397) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3401) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3405) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3409) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3413) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3425) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3429) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3433) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3437) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3441) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3453) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Laki\Desktop\Balkan Mania RPG\gamemodes\mania.pwn(3457) : error 004: function "PlayerToPoint" is not implemented


Evo jedna linija od tih:
	    else if(PlayerToPoint(3.0,playerid,376.4466,-60.9574,1001.5078) || PlayerToPoint(3.0,playerid,378.1215,-57.4928,1001.5078))

Tu mi do sada nije bacalo errore.
Nitro
5
Godfather
15. Dec. 2012.
Promašio si zagradu negde.
Apokalipsa
5
Underboss
15. Dec. 2012.
Probao sam svasta ali stalno izbacuje iste errore..Ne znam vise sta da radim.
Blaeks_Biofor
5
Forum Don
15. Dec. 2012.
vidi gde si ispostavio zagradice, nema druge
Cimbur
5
Kingpin
15. Dec. 2012.
		if(strcmp(cmd, "/makehelper", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristenje: /makehelper [ID Igraca/Dio Imena]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 4 || level < 1) { SendClientMessage(playerid, -1, "Samo od 1, do 4."); return 1; }
if(PlayerInfo >= 1340)
{
    if(IsPlayerConnected(para1))
    {
        if(para1 != INVALID_PLAYER_ID)
        {
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo = level;
printf("AdmCmd: Admin je %s-u dao odredjeni gm level.", sendername, giveplayer, level);
format(string, sizeof(string), "Admin %s vam je dao Helper Level %d.", sendername,level);
SendClientMessage(para1, COLOR_LIGHTRED, string);
format(string, sizeof(string), "Dali ste %s-u Helper Level %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "[BM:RP] Niste ovlasteni da koristite ovu komandu!");
}
}
return 1;
}

Izovli 🙂 Javi da li radi

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha