[HELP] save Attach3DTextLabelToVehicle in cars.cfg 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] save Attach3DTextLabelToVehicle in cars.cfg HELP!!! (
/showthread.php?tid=133451)
[HELP] save Attach3DTextLabelToVehicle in cars.cfg HELP!!! -
KazanTip - 12.03.2010
Kind time of days! I had a problem. I wish to make numbers for the bought cars. But has faced such problem. How to make that number remained in cars.cfg? I use LARP Mod. Here my code of a command.
Код:
if(strcmp(cmd, "/regplate", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /regplate [playerid/PartOfName] [xx-xxx-xxx]");
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /regplate [playerid/PartOfName] [xx-xxx-xxx]");
}
if(IsPlayerInAnyVehicle(playerid))
{
new vehicleid = GetPlayerVehicleID(playerid);
new Text3D:VText;
format(string,sizeof(string),"%s",(result));
VText = Create3DTextLabel(string,0x008080FF,0.0,0.0,0.0,20,0,1);
Attach3DTextLabelToVehicle(Text3D:VText, vehicleid, 0.0, 0.0, 0.0);
}
return 1;
}
}
else
{
format(string, sizeof(string), " %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}
Re: [HELP] save Attach3DTextLabelToVehicle in cars.cfg HELP!!! -
Razvann - 12.03.2010
Joining the question.I want to know how to save these 3dtexts.
Re: [HELP] save Attach3DTextLabelToVehicle in cars.cfg HELP!!! -
KazanTip - 12.03.2010
Very much pressing question, help please!
Re: [HELP] save Attach3DTextLabelToVehicle in cars.cfg HELP!!! -
Mike Garber - 12.03.2010
Use dini.
Re: [HELP] save Attach3DTextLabelToVehicle in cars.cfg HELP!!! -
TouR - 23.04.2010
OMG we got the same ideas bro... I made it for my new version of my server