Hello There, Guest! Login or Register


Useful Functions/Snippets/Commands
#11
how can i set a red icon in da map?  :P
i dont remember how to well ...
Reply
#12
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
Reply
#13
the lamest command ever made!

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

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

   
Reply
#15
(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
Reply
#16
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]
Reply
#17
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. :)
Reply
#18
Use the google in cache function:
Objects:
http://64.233.183.104/search?q=cache:kd_...cd=1&gl=nl
Skin ID's:
http://64.233.183.104/search?q=cache:jYw...cd=2&gl=nl
Reply
#19
I still don't get it but thx anyway 8)7

edit:now I get it thx again
Reply
#20
(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 )
Reply