18.08.2011, 19:29
could some one make a commands so if i typed /mini id get a minigun. But i want it to be an admin only command.
|
could some one make a commands so if i typed /mini id get a minigun. But i want it to be an admin only command.
|
YCMD:minigun(playerid, params[], help)
{
#pragma unused params
#pragma unused help
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not authorized to use that command!");
GivePlayerWeapon(playerid, 38, 9999999);
return 1;
}
CMD:minigun(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not authorized to use that command!");
GivePlayerWeapon(playerid, 38, 9999999);
return 1;
}
YCMD:minigun(playerid, params[], help)
{
#pragma unused params
#pragma unused help
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not authorized to use that command!");
GivePlayerWeapon(playerid, 38, 9999999);
return 1;
}
|
YCMD:
PHP код:
PHP код:
|
|
ZCMD plz, im gonna try this first
Код:
YCMD:minigun(playerid, params[], help)
{
#pragma unused params
#pragma unused help
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not authorized to use that command!");
GivePlayerWeapon(playerid, 38, 9999999);
return 1;
}
|
dcmd_minigun(playerid,params[])
{
#pragma unused params
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not authorized to use that command!");
GivePlayerWeapon(playerid, 38, 9999999);
return 1;
}
|
What kind of admin system do u have dcmd? if u got dcmd
try this: Код:
dcmd_minigun(playerid,params[])
{
#pragma unused params
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not authorized to use that command!");
GivePlayerWeapon(playerid, 38, 9999999);
return 1;
}
|
//Administrator Commands//
if(AdminLevel[playerid] >= 1)
{
dcmd(ahelp,5,cmdtext);
dcmd(warn,4,cmdtext);
dcmd(a,1,cmdtext);
dcmd(slap,4,cmdtext);
}
dcmd(minigun,7,cmdtext);