SA-MP Forums Archive
Creating pickups @ your location. - 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: Creating pickups @ your location. (/showthread.php?tid=259031)



Creating pickups @ your location. - GangsTa_ - 02.06.2011

pawn Код:
if(strcmp(cmd, "/pickup", true) == 0)
{
    new X,Y,Z;
    X,Y,Z == Float:X, Float:Y, Float:Z;
    new ppos;
    ppos == GetPlayerPos(playerid, X,Y,Z);
    AddStaticPickup(1277, 1, ppos, 0);
    return 1;
}
This won't work, got some errors, anyone knows how?


Re: Creating pickups @ your location. - PrawkC - 02.06.2011

Код:
if(strcmp(cmd, "/pickup", true) == 0)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x,y,z);
    AddStaticPickup(1277, 1, x, y, z, 0);
    return 1;
}



Re: Creating pickups @ your location. - GangsTa_ - 02.06.2011

Thanks.