SA-MP Forums Archive
how do i make this? - 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: how do i make this? (/showthread.php?tid=211421)



how do i make this? - hadzx - 15.01.2011

hey guys i dunno if this is a pickup but how do i make this ive got a picture of it and how do i make it say "hello" when u walk into it . if you can just write it then i can copy and put teleports etc in it thx




Re: how do i make this? - Steven Paul - 15.01.2011

so you mean, when a play enter's that checkpoint he/she will get a message called "Hello"


Re: how do i make this? - hadzx - 15.01.2011

Quote:
Originally Posted by Steven Paul
Посмотреть сообщение
so you mean, when a play enter's that checkpoint he/she will get a message called "Hello"
yeah how do i make it??


Re: how do i make this? - iggy1 - 15.01.2011

pawn Код:
public OnPlayerConnect(playerid)
{
    SetPlayerCheckpoint(playerid, Float:cp_x, Float:cp_y, Float:cp_z, 5.0);// keep in mind only one checkpoint
    return 1;                                                              //can be shown to a player at any one time.
}                                                                          //So try to find a streamer that will stream them for you.


public OnPlayerEnterCheckpoint(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0,Float:cp_x, Float:cp_y, Float:cp_z))
        GameTextForPlayer(playerid, "HELLO!", 3000, 3);
       
    return 1;
}
You will obviously need to add your co-ordinates.


Re: how do i make this? - hadzx - 15.01.2011

Quote:
Originally Posted by iggy1
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    SetPlayerCheckpoint(playerid, Float:cp_x, Float:cp_y, Float:cp_z, 5.0);// keep in mind only one checkpoint
    return 1;                                                              //can be shown to a player at any one time.
}                                                                          //So try to find a streamer that will stream them for you.


public OnPlayerEnterCheckpoint(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0,Float:cp_x, Float:cp_y, Float:cp_z))
        GameTextForPlayer(playerid, "HELLO!", 3000, 3);
       
    return 1;
}
You will obviously need to add your co-ordinates.
thanks but its so confusing il just stick with teleport cmds lol ;P the server that i took that pic crazybob has about 1000 of them at once its insanne


Re: how do i make this? - iggy1 - 15.01.2011

Its less confusing if you use a streamer because you can use checkpointids instead of using "IsPlayerInRangeOfPoint". And create all checkpoints for all players in one callback. (incognitos streamer plugin)


Re: how do i make this? - iggy1 - 15.01.2011

Erm because he isn't using the streamer. Also read the post before yours.


Re: how do i make this? - iggy1 - 15.01.2011

Intuition my freind, he didn't know what a cp was called. And didn't state that he was using a streamer. Use your brains.

We are not supposed to guess he uses a streamer.

EDIT: Just as a side note i mentioned in most my posts in this thread that using a streamer would be easier.


Re: how do i make this? - hadzx - 22.01.2011

Quote:
Originally Posted by iggy1
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    SetPlayerCheckpoint(playerid, Float:cp_x, Float:cp_y, Float:cp_z, 5.0);// keep in mind only one checkpoint
    return 1;                                                              //can be shown to a player at any one time.
}                                                                          //So try to find a streamer that will stream them for you.


public OnPlayerEnterCheckpoint(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0,Float:cp_x, Float:cp_y, Float:cp_z))
        GameTextForPlayer(playerid, "HELLO!", 3000, 3);
       
    return 1;
}
You will obviously need to add your co-ordinates.
Код:
C:\Users\Stephen-Laptop\Desktop\server samp\gamemodes\Cookiemod.pwn(76) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
help plz


Re: how do i make this? - WillyP - 22.01.2011

Quote:
Originally Posted by hadzx
Посмотреть сообщение
Код:
C:\Users\Stephen-Laptop\Desktop\server samp\gamemodes\Cookiemod.pwn(76) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
help plz
Line 76?