- 0
AttachObjectToVehicle
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
kiLLers
Ce nu e corect in acest script ?:| cand dau /incarcare nu se pune obiectu pe masina :| din ce cauza oare ?
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/incarcare", cmdtext, true, 10) == 0)
{
new carid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 578)
{
new objectid = CreateObject(1500, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000);
AttachObjectToVehicle(1500, 578, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
ToysJob[playerid] = 1;
new name[MAX_PLAYER_NAME], string[90];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s Distribute Toys.", name );
SendClientMessageToAll(COLOR_AQUA, string);
SetPlayerCheckpoint(playerid,2349.7988,-1411.4089,23.9922,4);
SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points Red on mapa!");
SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer *!");
return 1;
}
SendClientMessage(playerid, COLOR_RED,"Only Toys car Start jobs!");
}
return 0;
}
Link to comment
Share on other sites
2 answers to this question
Recommended Posts