CMD:getcar(playerid, params[]) { if(PlayerInfo[playerid][pAdminDuty] == 0) return SendClientMessage(playerid, -1, "You must be on Admin Duty to use this Command!"); if (PlayerInfo[playerid][pAdmin] >= 3) { new carid; if(sscanf(params, "d", carid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /getcar [carid]"); new Float:plocx,Float:plocy,Float:plocz; GetPlayerPos(playerid, plocx, plocy, plocz); SetVehiclePos(carid,plocx,plocy+4, plocz); SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(carid, GetPlayerInterior(playerid)); } else { SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!"); } return 1; }
if(PlayerInfo[playerid][pAdminDuty] == 0) return SendClientMessage(playerid, -1, "You must be on Admin Duty to use this Command!");
if(PlayerInfo[playerid][pAdminDuty] == 0) return SendClientMessage(playerid, -1, "You must be on Admin Duty to use this Command!");
Remove
pawn Код:
|
CMD:getcar(playerid, params[])
{
// The one that was here
if (PlayerInfo[playerid][pAdmin] >= 3)
{
new carid;
if(sscanf(params, "d", carid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /getcar [carid]");
new Float:plocx,Float:plocy,Float:plocz;
GetPlayerPos(playerid, plocx, plocy, plocz);
SetVehiclePos(carid,plocx,plocy+4, plocz);
SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
}
return 1;
}
CMD:impound(playerid, params[]) { switch(PlayerInfo[playerid][pMember]) { case 1, 2, 3, 7, 11: { if(!IsAtImpoundingPoint(playerid)) { SendClientMessageEx(playerid, COLOR_GREY, "You are not near the impound point, you can't impound!"); return 1; }
By the way, in this command : [pawn]CMD:impound(playerid, params[])
{ switch(PlayerInfo[playerid][pMember]) { case 1, 2, 3, 7, 11: { if(!IsAtImpoundingPoint(playerid)) { SendClientMessageEx(playerid, COLOR_GREY, "You are not near the impound point, you can't impound!"); return 1; }[pawn] How can I make it only for faction 10? It's restricted to Faction 1, somehow... |
case 1, 2, 3, 7, 11:
case 10:
If you want it only for faction 10 replace this
pawn Код:
pawn Код:
|