
...I don't know if im wasting my time or not.
|
I am not going to test it.
Know why?Because i do not get any information about it in the description ...I don't know if im wasting my time or not.Just kiddin' :-j,it looks nice but you really should add a bigger description ![]() |
|
nice job !! But add some Screen shots , videos or more Informations
|

|
ok, i found i do /ahelp but i do /rcon login (password) and then /ahelp and "you are not admin" then i try /makeadmin ID LVL and it say you are no the owner!
|
if(strcmp(cmd, "/makeadmin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_SAY, "USAGE: /makeadmin [ID] [level]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] == 2)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pAdmin] = level;
format(string, sizeof(string), " You have been promoted to a level %d admin by %s", level, sendername);
SendClientMessage(para1, COLOR_SAY, string);
format(string, sizeof(string), " You have promoted %s to a level %d admin.", giveplayer,level);
SendClientMessage(playerid, COLOR_SAY, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_SAY, "You are not owner!");
}
}
return 1;
}
|
You need edit the user file of admin level.
Or just replace /makeadmin with this: Code:
if(strcmp(cmd, "/makeadmin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_SAY, "USAGE: /makeadmin [ID] [level]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] == 2)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pAdmin] = level;
format(string, sizeof(string), " You have been promoted to a level %d admin by %s", level, sendername);
SendClientMessage(para1, COLOR_SAY, string);
format(string, sizeof(string), " You have promoted %s to a level %d admin.", giveplayer,level);
SendClientMessage(playerid, COLOR_SAY, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_SAY, "You are not owner!");
}
}
return 1;
}
|
|
Nice GM, i have just 1warning
samp03csvr_R2-2_win32\pawno\include\FairPlay.inc(52) : warning 235: public function lacks forward declaration (symbol "INC_SetVehiclePos") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. |
|
honestly i was looking for a Gm like this bcoz i dont have time to create frm scratch anywayz can i edit it WITHOUT DELETING CREDITS
|