Jump to content
  • 0

cum sa fac sa aiba omul un obiect dupa el


Question

Posted

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).

3 answers to this question

Recommended Posts

  • 0
Guest farse
Posted

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;
}

  • 0
  • Administrator
Posted

e frumos asa ceva.Pun dupa mine o mina pentru cei ce ma busesc sa faca bum :D

Si faci dupaia si tu. =)))

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

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.