Originally Posted by Peep
Quote:
Originally Posted by Ykelder
Quote:
Originally Posted by Peep
Quote:
Originally Posted by Ykelder
I can't find where to do /agent in the server... I searched alot but I just can't find it. Could someone please tell me?
It keeps saying something like: Your not in HQ!
|
Mabye at police department when cops do /duty ?
|
That command is for an FBI Agent and I tried it at the same place as /duty for FBI but doesn't work
Please help me
|
Hmm then you can change that /agent place too.
Code:
if(strcmp(cmd, "/agent", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2)
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage (playerid, COLOR_WHITE, "USAGE: /agent list then /agent [skin id]");
return 1;
}
if (PlayerToPoint(20, playerid, 299.7097,183.1322,1007.1719)) <--This code you can replace.
{
if(strcmp(x_nr,"list",true) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "______________Skin_List______________");
This (if (PlayerToPoint(20, playerid, 299.7097,183.1322,1007.1719)) <--This code you can replace.)chancing is easy.Goto Game go to that position where do you want to that command work and type /save (agent place)or something to know what cordinates these are.Now go to Rockstar Game Folder search there Savepositions.txt , open it and there is code , there is code like this AddPlayerClass(293, 1165.6909,-1327.0144,1386.4193,265.4559,0,0,0,0,0,0); // agent place.You need only red part of this code to replace that if (PlayerToPoint(20, playerid, 299.7097,183.1322,1007.1719))code.
i hope this helps.
|