SA-MP Forums Archive
Rc help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Rc help (/showthread.php?tid=524615)



Rc help - killing - 07.07.2014

i want a command for only admins when they type /rc rc spanwed and they automatically put into it


Re : Rc help - S4t3K - 07.07.2014

Then code it.

I get a little bored by the persons who post here requesting a ready-made code.
There is actually a sticky post made for this purpose, but get prepared to pay. Life isn't fair don't you think ? Either I have to know how to code or I have to pay for someone who knows how to...
Link of the thread : https://sampforum.blast.hk/showthread.php?tid=447813


Re: Rc help - TwinkiDaBoss - 07.07.2014

pawn Код:
CMD:rc(playerid,params[])
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    new vid = CreateVehicle(564, x,y,z, 0, 0, 1, 60); // RC tank
    PutPlayerInVehicle(playerid,vid,0);
    return 1;
}
:P


Re: Rc help - killing - 08.07.2014

Thank Uou TwinkiDaBoss +rep


Re: Rc help - killing - 08.07.2014

i want only for admin


Re: Rc help - ABKPot - 08.07.2014

Quote:
Originally Posted by TwinkiDaBoss
Посмотреть сообщение
pawn Код:
CMD:rc(playerid,params[])
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    new vid = CreateVehicle(564, x,y,z, 0, 0, 1, 60); // RC tank
    PutPlayerInVehicle(playerid,vid,0);
    return 1;
}
:P
Quote:
Originally Posted by killing
Посмотреть сообщение
i want only for admin
pawn Код:
CMD:rc(playerid,params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0x800000, "ERROR: RC CMD - You are not an admin!");
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    new vid = CreateVehicle(564, x,y,z, 0, 0, 1, 60); // RC tank
    PutPlayerInVehicle(playerid,vid,0);
    return 1;
}



Re: Rc help - killing - 08.07.2014

Thank You

and can i get this cmd ? /tempban [ for temp ban ]
and i am having /mute cmd but i cant put time in it for eg /mute 1 60


Re: Rc help - ABKPot - 08.07.2014

pawn Код:
//Here is sscanf tempban.  REquires sscanf plugin
cmd:tempban(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0x800000, "ERROR: Tempban - You are not an admin!");
    new player, time;
    if(sscanf(params, "ud", player, time)) return SendClientClientMessage(playerid, 0x800000, "/tempban <playerid> <params>");

    time = time * 60000, mins = time / 60000;
    if(time < 60000 || time > 99999999 || mins > 9999) return SendClientClientMessage(playerid, 0x800000, "/tempban <playerid> <params>");

    new ipa[18];
    GetPlayerIp(playerid, ipa, sizeof(ipa));
    BlockIpAddress(ipa, time);
   
    printf("%s (IP: %s) was banned for %d minutes", player, ipa, mins);
    return 1;
}



Re: Rc help - killing - 08.07.2014

every one can use i cant see isplayeradmin


Re: Rc help - ABKPot - 08.07.2014

Quote:
Originally Posted by killing
Посмотреть сообщение
every one can use i cant see isplayeradmin
My last post was updated. You could of just copied + pasted that line from the RC command though.