I need help.
#1

So, I need to know how to make a spray tagging system, the CMD would be /tag.

Teams:

Grove Street Families
Seville Boulevard Families
Temple Drive Families
Front Yard Ballas
Rollin Heights Ballas
Kilo Tray Ballas
Temple Drive Ballas
Varrios Los Aztecas
Los Santos Vagos
(Rifa are not included)
-------------------------------------------------

So, I need there to be like a CMD such as /tag, and when you tag, it's puts the tag for whatever gang you're in.

Can anyone help me? I am also using zcmd.
Reply
#2

You can do something like this:
pawn Код:
new SprayObjects[MAX_GANGS];

SprayObjects[gangid] = modelid; // set the variable to the object ID for the according tag somewhere in OnGameModeInit or OnFilterScriptInit (or just use an array)

GetSprayTagObjectIDForGang(gangid)
{
    return SprayObjects[gangid];
}

CMD:tag(playerid, params[])
{
      new objectID = GetSprayTagObjectIDForGang(PlayerGang[playerid]));
      GangTagData[gangid][playerid] = CreateDynamicObject(objectID, x, y, z, rx, ry, rz);
      return 1;
}
This is an example, and I repeat will NOT work as is. It is just an example to give you an idea on how this can be done.
Reply
#3

Quote:
Originally Posted by Abagail
Посмотреть сообщение
You can do something like this:
pawn Код:
new SprayObjects[MAX_GANGS];

SprayObjects[gangid] = modelid; // set the variable to the object ID for the according tag somewhere in OnGameModeInit or OnFilterScriptInit (or just use an array)

GetSprayTagObjectIDForGang(gangid)
{
    return SprayObjects[gangid];
}

CMD:tag(playerid, params[])
{
      new objectID = GetSprayTagObjectIDForGang(PlayerGang[playerid]));
      GangTagData[gangid][playerid] = CreateDynamicObject(objectID, x, y, z, rx, ry, rz);
      return 1;
}
This is an example, and I repeat will NOT work as is. It is just an example to give you an idea on how this can be done.
I need it done as a CMD, since I don't know how to do it myself.
Reply
#4

bump..
Reply
#5

Nobody is going to write a fully functioning system for you. This section is for scripting help, not script requests.
Reply
#6

Quote:
Originally Posted by Krexx
Посмотреть сообщение
I need it done as a CMD, since I don't know how to do it myself.
Thats what Goggle and the Search Button is for..



Quote:
Originally Posted by Mionee
Посмотреть сообщение
Nobody is going to write a fully functioning system for you. This section is for scripting help, not script requests.
^^^^ and your only allowed to bump once every 24 hours
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)