Rc help
#1

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

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
Reply
#3

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
Reply
#4

Thank Uou TwinkiDaBoss +rep
Reply
#5

i want only for admin
Reply
#6

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;
}
Reply
#7

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
Reply
#8

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;
}
Reply
#9

every one can use i cant see isplayeradmin
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)