SA-MP Forums Archive
Command 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: Command Help (/showthread.php?tid=518764)



Command Help - EmadQmars - 11.06.2014

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


Re: Command Help - Laure - 11.06.2014

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?


Re: Command Help - EmadQmars - 11.06.2014

i want a cod for admin

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


Re: Command Help - Weponz - 11.06.2014

GetVehiclePos + SetVehiclePos


Re: Command Help - EmadQmars - 11.06.2014

respawncar for admins


Re: Command Help - Laure - 11.06.2014

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



Re: Command Help - EmadQmars - 11.06.2014

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.




AW: Command Help - Macronix - 11.06.2014

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


Re: AW: Command Help - EmadQmars - 11.06.2014

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


Re: Command Help - EmadQmars - 11.06.2014

this cod not work