Las Venturas Playground
Useful Functions/Snippets/Commands - Printable Version

+- Las Venturas Playground (https://forum.sa-mp.nl)
+-- Forum: Miscellaneous (https://forum.sa-mp.nl/forum-4.html)
+--- Forum: Gaming (https://forum.sa-mp.nl/forum-27.html)
+--- Thread: Useful Functions/Snippets/Commands (/thread-8203.html)

Pages: 1 2 3


Re: Useful Functions/Snippets/Commands - MoToRoLa - 04-29-2008

how can i set a red icon in da map?  :P
i dont remember how to well ...


Re: Useful Functions/Snippets/Commands - Jay - 04-29-2008

Well, you can set a players colour to red, or make a checkpoint! Or, if you just want the icon to show when the player is close, Use SetPlayerMapIcon. Theres an iconid with a white square, that supports colours in it.

Wrong section btw


Re: Useful Functions/Snippets/Commands - Lodewijk - 05-07-2008

the lamest command ever made!

Code:
    if( strcmp( cmdtext, "/Quest" , true, 5 ) == 0 )
    {
    GameTextForPlayer(playerid, "SUMG QUEST LEET", 5000, 1);
    return 1;
    }



Re: Useful Functions/Snippets/Commands - Jay - 05-08-2008

even easier:

Code:
if( strcmp( cmdtext, "/Quest" , true ) == 0 ) return GameTextForPlayer(playerid, "SUMG QUEST LEET", 5000, 1);
   

   


Re: Useful Functions/Snippets/Commands - Lodewijk - 05-08-2008

(05-08-2008, 11:54 AM)Jay link Wrote: even easier:

Code:
if( strcmp( cmdtext, "/Quest" , true ) == 0 ) return GameTextForPlayer(playerid, "SUMG QUEST LEET", 5000, 1);
   

   
i should try the strcmp return func. o_O


Re: Useful Functions/Snippets/Commands - PeterParker - 05-22-2008

Code:
C:\DOCUME~1\Name\Desktop\name\server\GAMEMO~1\GF.pwn(7399) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Name\Desktop\name\server\GAMEMO~1\GF.pwn(7399) : error 004: function "msgtimer" is not implemented
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
[quote author=Smoke link=topic=8713.msg104477#msg104477 date=1208929846]
shouldn't this
Code:
Random Messages:

Up the top:
[code]
forward msgtimer();
new Help[][] =
{
    "Try \"/Commands\" for help.",
    "Spotted a hacker? read \"/help 2\".",
    "Don't use any hacks/cheats, you will be banned instantly!",
    "Don't ask to be an admin!",
    "English in mainchat, Use \"/pm\" to use Non-English",
    "Please don't use CAPS, you will be muted!",
    "Remember to obey the \"/rules\"!!",
    "Don't spawn-kill, you will be bugger nutted!",
    "Spotted a cheater/hacker? use /report [ID] [Report].",
    "Don't door-camp (Shooting at doors) you will be bugger nutted.",
    "Try \"/admins to see the online admins.",
    "Never ever report cheaters in main-chat.",
    "Remember to read the /rules!"

};

Under OnGameModeInit:

Code:
SetTimer("msgtimer",180000,1);

Somewhere except in another callback:

Code:
public msgtimer()
{
    SendClientMessageToAll(COLOR_YELLOW, Help[random(sizeof(Help))]);
}
[/code]



Re: Useful Functions/Snippets/Commands - Zipper - 06-08-2008

I know this is not the best place to ask this but since the wiki i down for some time can anyone give me the skin and object ID's. :)


Re: Useful Functions/Snippets/Commands - Extinction - 06-08-2008

Use the google in cache function:
Objects:
http://64.233.183.104/search?q=cache:kd_us7BYp9EJ:wiki.sa-mp.com/wiki/Objects+sa-mp+wiki+objects&hl=nl&ct=clnk&cd=1&gl=nl
Skin ID's:
http://64.233.183.104/search?q=cache:jYw_DQzW6hEJ:wiki.sa-mp.com/wiki/Category:Skins+sa-mp+wiki+skins&hl=nl&ct=clnk&cd=2&gl=nl


Re: Useful Functions/Snippets/Commands - Zipper - 06-08-2008

I still don't get it but thx anyway 8)7

edit:now I get it thx again



Re: Useful Functions/Snippets/Commands - FarePak - 06-08-2008

(06-08-2008, 09:33 AM)Zipper link Wrote: I know this is not the best place to ask this but since the wiki i down for some time can anyone give me the skin and object ID's. :)

What skin?
What object id? ( Prob wont be able to find the exact object id your looking for though )