05.04.2010, 20:27
como fasso um pickup que chege ao pй dele e ele teleporta-me automaticamente para outro lado?
public OnPlayerPickUpPickup(playerid, pickupid) {
if(pickupid == NovoPickup) {
GameTextForPlayer(playerid"Los Santos PD");
goto (1234.4331,-2033.3112,61.0384);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == NovoPickup)
{
GameTextForPlayer(playerid"Los Santos PD");
SetPlayerPos(playerid,1234.4331,-2033.3112,61.0384);
}
}
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
new NovoPickup;
NovoPickup = CreatePickup(1318, 0, 1234.4331,-2033.3112,61.0384);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == NovoPickup)
{
GameTextForPlayer(playerid"Los Santos PD");
SetPlayerPos(playerid,1234.4331,-2033.3112,61.0384);
}
}
return 1;
}
#endif
Originally Posted by tshadow
deu mas quando cheguei ao server nгo estбva lб
pawn Код:
|
#include <a_samp>
new NovoPickup;
public OnGameModeInit()
{
NovoPickup = CreatePickup(1318, 23, 1234.4331,-2033.3112,61.0384);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == NovoPickup)
{
GameTextForPlayer(playerid"Los Santos PD");
SetPlayerPos(playerid,1234.4331,-2033.3112,61.0384);
}
}
return 1;
}