How to add this?
#1

I saw this when was created but i didnt search for it because i found some fs for (hat and other things but not for thins) so how to attach this to player? or like i want to only swat when type /shield to have the police shield..


Here is some screens for that what i need:



Reply
#2

Try:

https://sampwiki.blast.hk/wiki/AttachPlayerObjectToPlayer
Reply
#3

Quote:
Originally Posted by Stigg
Посмотреть сообщение

Yea..
I make this:
pawn Код:
if(!strcmp(cmdtext,"/mask",true))
    {
        if(IsPlayerConnected(playerid))
        {
            SetPlayerAttachedObject(playerid,1,1254,1,0.1,0.05,0.0,0.0,0.0,0.0);
            SendClientMessage(playerid,COLOR_RED,"You mask.");
        }
        return 1;
    }
But what to add when i type again mask or maskoff to remove it.. And i want to ask you is there any thing to set cordinates?
Reply
#4

pawn Код:
if(!strcmp(cmdtext,"/maskoff",true))
    {
        if(IsPlayerConnected(playerid))
        {
            DestroyPlayerObject(playerid, 1254);
            SendClientMessage(playerid,COLOR_RED,"You mask off.");
        }
        return 1;
    }
Reply
#5

Quote:
Originally Posted by xir
Посмотреть сообщение
pawn Код:
if(!strcmp(cmdtext,"/maskoff",true))
    {
        if(IsPlayerConnected(playerid))
        {
            DestroyPlayerObject(playerid, 1254);
            SendClientMessage(playerid,COLOR_RED,"You mask off.");
        }
        return 1;
    }

Thanks man.. And last question do you know some tool or fs for setting cords?
Reply
#6

You can just go ingame, type /save and it will save your position?
Reply
#7

man i know to save position but i want to save cords on face because (SetPlayerAttachedObject(playerid,1,1254,1,0.1,0.0 5,0.0,0.0,0.0,0.0) mask is not on face..
Reply
#8

For that's GetObjectPos :P
Reply
#9

http://forum.sa-mp.com/showthread.ph...ght=HoldStudio
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)