I need 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: I need help. (
/showthread.php?tid=558778)
I need help. -
Krexx - 19.01.2015
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.
Re: I need help. -
Abagail - 19.01.2015
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.
Re: I need help. -
Krexx - 19.01.2015
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.
Re: I need help. -
Krexx - 19.01.2015
bump..
Re: I need help. -
Dignity - 19.01.2015
Nobody is going to write a fully functioning system for you. This section is for scripting help, not script requests.
Re: I need help. -
Thoma - 19.01.2015
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