Command Help
#1

Hi again

I Want A Cod For Admin Car In My Cops&Robber Server

my Admin Level Is 12&3&4&7&1377

Please Give Me Cod And Enter To My GameMode
Reply
#2

It would be nice if you try to explain more about what exactly you want in your server. Like creating a custom car or bla bla?
Reply
#3

i want a cod for admin

I got a code for admins to be able to bring your car
Reply
#4

GetVehiclePos + SetVehiclePos
Reply
#5

respawncar for admins
Reply
#6

Use this. Also change it to your own variable to avoid errors.
pawn Код:
CMD:respawncars(playerid, params[])
{
    new string[128];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, -1, "You need to login first before using any command.");
    if(PlayerInfo[playerid][pAdmin]) return SendClientMessage(playerid, -1, "You are not authorized to use this command.");
    for(new i=0; i<MAX_VEHICLES; i++)
    {
        SetVehicleToRespawn(i);
       }
    return 1;
}
Reply
#7

eror
Quote:

C:\Users\E.Q.S\Desktop\All For Gta\gTA gAMEMODE\cops & robers\gamemodes\SFCRRPG.pwn(6199) : error 017: undefined symbol "IsPlayerLoggedIn"
C:\Users\E.Q.S\Desktop\All For Gta\gTA gAMEMODE\cops & robers\gamemodes\SFCRRPG.pwn(6200) : error 017: undefined symbol "pAdmin"
C:\Users\E.Q.S\Desktop\All For Gta\gTA gAMEMODE\cops & robers\gamemodes\SFCRRPG.pwn(619 : warning 204: symbol is assigned a value that is never used: "string"
C:\Users\E.Q.S\Desktop\All For Gta\gTA gAMEMODE\cops & robers\gamemodes\SFCRRPG.pwn(6196) : warning 203: symbol is never used: "params"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Reply
#8

pawn Код:
CMD:respawncars(playerid, params[])
{
    #pragma unused params
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not authorized to use this command.");
    for(new i=0; i<MAX_VEHICLES; i++)
    {
        SetVehicleToRespawn(i);
    }
    SendClientMessageToAll(-1, "Every vehicle has been respawned!");
    return 1;
}
Only RCON Admins can use this command
You can replace the line where it checks for RCON Admin with your Admin variable
Reply
#9

Quote:
Originally Posted by Macronix
Посмотреть сообщение
pawn Код:
CMD:respawncars(playerid, params[])
{
    #pragma unused params
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not authorized to use this command.");
    for(new i=0; i<MAX_VEHICLES; i++)
    {
        SetVehicleToRespawn(i);
    }
    SendClientMessageToAll(-1, "Every vehicle has been respawned!");
    return 1;
}
Only RCON Admins can use this command
You can replace the line where it checks for RCON Admin with your Admin variable
you dont have any cod for all admin please
Reply
#10

this cod not work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)