Jump to content
  • 0

cum sa fac sa aiba omul un obiect dupa el


heatON

Question

dau un exemplu

sa-mp-011.png

tastez o comanda de ex /bush si apare tufisurile alea si cum ma misc asa se misca si ele

stiu ca tre id obiect si ii cv de genu setplayerobect cu coord x y z da nush sincer cum sa fac

Imi aduc aminte cand jucam pe versiunea 0.1.. ala era SA-MP adevarat.

Va salut cu respect (pe cei care merita).

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Guest farse

pai...e cu AttachObjectToPlayer

AttachObjectToPlayer(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);

EX:

	
if (strcmp("/tufish", cmdtext, true, 10) == 0)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
new tuf;
tuf = CreateObject(IDTufish,0,0,0,0,0,0,);
AttachObjectToPlayer(tuf,playerid,x,y,z+1,0,0,0);
return 1;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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.