SA-MP Forums Archive
hi can any one help me - 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)
+--- Thread: hi can any one help me (/showthread.php?tid=483737)



hi can any one help me - moustafa0550 - 27.12.2013

hi
can any one tell me how to add in server star wanted to i take 1,,,, 1 wanted dissapear
how to make it


Re : hi can any one help me - med01 - 27.12.2013

What? i did not unsterdant anythings


Re: hi can any one help me - Hansrutger - 27.12.2013

Here is your answer!

I didn't know how to do this either actually! Let me tell you how I came up with the conclusion of how to get the answer to YOUR question. I ******d random words that had to do with samp, stars and being wanted, and I didn't even spell it out well or used much grammar and it was on my first search anyways.

Example:
pawn Код:
CMD:givestar(playerid, params[])
{
     new targetID, level;
     if(sscanf(params, "ui", targetID, level)) return 1;
     new alreadyWanted = GetPlayerWantedLevel(targetID);
     
     if(alreadyWanted == 0)
     {
           SetPlayerWantedLevel(targetID, level);
           return 1;
     }
     return 1;
}