CMD:adminhouse(playerid, params[])
{
if(IsPlayerAdmin(playerid))
SetPlayerHealth(playerid, 100.00);
SetPlayerPos(playerid,-687.9445,953.5914,12.1495);
return 1;
}
CMD:adminhouse(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
SetPlayerHealth(playerid, 100.00);
SetPlayerPos(playerid,-687.9445,953.5914,12.1495);
}
return 1;
}
CMD:adminhouse(playerid, params[])
{
if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not an admin");
{
SetPlayerHealth(playerid, 100.00);
SetPlayerPos(playerid,-687.9445,953.5914,12.1495);
}
return 1;
}
by admin you mean, rcon administrators, or your admin system
|
pawn Код:
|
CMD:adminhouse(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
SetPlayerHealth(playerid, 100.00);
SetPlayerPos(playerid,-687.9445,953.5914,12.1495);
}
else
{
SendClientMessage(playerid, -1, "You are unable to use this command [Rcon Administrators Only!].");
}
return 1;
}
CMD:adminhouse(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
SetPlayerHealth(playerid, 100.00);
SetPlayerPos(playerid,-687.9445,953.5914,12.1495);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You're not an Admin!");
}
return 1;
}
CMD:adminhouse(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
SetPlayerHealth(playerid, 100.00);
SetPlayerPos(playerid,-687.9445,953.5914,12.1495);
SendClientMessage(playerid, -1, "You have been teleported to admin's house.");
}
else
{
SendClientMessage(playerid, -1, "ERROR, You're not a RCON Administrator to use this command");
}
return 1;
}
pawn Код:
|