Posts: 1,297
Threads: 17
Joined: Apr 2011
pawn Код:
if(strcmp(cmd, "/adminjetpack", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
CreatePickup(370, 3, X, Y, Z);
SendClientMessage(playerid, COLOR_GREEN, "Jet Pack Created.");
}
return 1;
}
Posts: 438
Threads: 82
Joined: Apr 2011
Reputation:
0
FireCat Thats Working But Only Rcon Admin Can get /AdminJetpack not anyadmin can get it can u do it for 3 level admin
Posts: 1,297
Threads: 17
Joined: Apr 2011
give us the pInfo your using.
How are you defining player's admin level?
Posts: 1,297
Threads: 17
Joined: Apr 2011
Quote:
Originally Posted by Kingunit
pawn Код:
CMD:goto(playerid, params[]) { if(PlayerInfo[playerid][Adminlevel] < 1) return SendClientMessage(playerid, 0xFFFFFFFF,".:: You are not authorized to use this command ::."); // Own Vars new targetid, string[128]; if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, 0xFFFFFFFF, "[PlayerID/PartOfName]"); if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFFF, " Player not connected!"); else { new pName[24]; GetPlayerName(targetid,pName,128); format(string, sizeof(string), "[ADMIN] You succesfully teleported to [%d] %s.",targetid, pName); SendClientMessage(playerid, 0xFFFFFFFF,string); SetPlayerInterior(playerid,GetPlayerInterior(targetid)); new Float:TPX, Float:TPY, Float:TPZ; GetPlayerPos(targetid, TPX, TPY, TPZ); SetPlayerPos(playerid, TPX, TPY, TPZ+1); } return 1; }
|
Read the topic again please.