|
Originally Posted by Vetle
u cant
there is a modelid that looks like the yellow marker, but it is much smaller |
new pickup;
OnGameModeInit();
{
pickup = CreatePickup(1239, 23, -2909.0461,-76.0032,3.3680);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == pickup)
{
GameTextForPlayer(playerid,"House For Sale 1.2 Mil",5000,3);
}
return 1;
}
|
Originally Posted by [SU
BP13 ]
Код:
new pickup;
OnGameModeInit();
{
pickup = CreatePickup(1239, 23, -2909.0461,-76.0032,3.3680);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == pickup)
{
GameTextForPlayer(playerid,"House For Sale 1.2 Mil",5000,3);
}
return 1;
}
|
new Info[4];
OnGameModeInit();
{
Info[0] = CreatePickup(1239, 23, -2909.0461,-76.0032,3.3680);
Info[1] = CreatePickup(1239, 23, -471.6951,2198.6221,46.4031);
Info[2] = CreatePickup(1239, 23, -473.3904,2208.1060,47.1292);
Info[3] = CreatePickup(1239, 23, -482.6900,2218.7649,48.8604);
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == Info[0])
{
GameTextForPlayer(playerid,"~g~Info:~n~~w~Only administrators may enter the admincastle.~n~~r~Trying to enter as a non-admin is at your own risk.",7000,3);
PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
}
if (pickupid == Info[1])
{
GameTextForPlayer(playerid,"~g~Info:~n~~w~To get started type /teles",5000,3);
PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
}
if (pickupid == Info[2])
{
GameTextForPlayer(playerid,"~g~Info:~n~~w~Use /Home to teleport back to this place.",5000,3);
PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
}
if (pickupid == Info[3])
{
GameTextForPlayer(playerid,"~g~Info:~n~~w~If you deathmatch here you will be kicked/banned!",5000,3);
PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
}
return 1;
}
|
Originally Posted by [SU
BP13 ]
here is a example i'm currently using it in my script. Код:
new Info[4];
OnGameModeInit();
{
Info[0] = CreatePickup(1239, 23, -2909.0461,-76.0032,3.3680);
Info[1] = CreatePickup(1239, 23, -471.6951,2198.6221,46.4031);
Info[2] = CreatePickup(1239, 23, -473.3904,2208.1060,47.1292);
Info[3] = CreatePickup(1239, 23, -482.6900,2218.7649,48.8604);
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == Info[0])
{
GameTextForPlayer(playerid,"~g~Info:~n~~w~Only administrators may enter the admincastle.~n~~r~Trying to enter as a non-admin is at your own risk.",7000,3);
PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
}
if (pickupid == Info[1])
{
GameTextForPlayer(playerid,"~g~Info:~n~~w~To get started type /teles",5000,3);
PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
}
if (pickupid == Info[2])
{
GameTextForPlayer(playerid,"~g~Info:~n~~w~Use /Home to teleport back to this place.",5000,3);
PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
}
if (pickupid == Info[3])
{
GameTextForPlayer(playerid,"~g~Info:~n~~w~If you deathmatch here you will be kicked/banned!",5000,3);
PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
}
return 1;
}
|
C:\Documents and Settings\TRM\Desktop\samp02Xserver.win32\gamemodes\BritanniaRP.pwn(126) : error 017: undefined symbol "Info" C:\Documents and Settings\TRM\Desktop\samp02Xserver.win32\gamemodes\BritanniaRP.pwn(126) : warning 215: expression has no effect C:\Documents and Settings\TRM\Desktop\samp02Xserver.win32\gamemodes\BritanniaRP.pwn(126) : error 001: expected token: ";", but found "]" C:\Documents and Settings\TRM\Desktop\samp02Xserver.win32\gamemodes\BritanniaRP.pwn(126) : error 029: invalid expression, assumed zero C:\Documents and Settings\TRM\Desktop\samp02Xserver.win32\gamemodes\BritanniaRP.pwn(126) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. Here is the line Info[0] = CreatePickup(1273,1,1081.0938,-345.3902,73.9832); // UF Hideout House Info[1] = CreatePickup(1272,1,1847.6652,-1871.6461,13.5781); // Store 1 Info[2] = CreatePickup(1272,1,2139.7717,-1191.8656,23.9922); // Store 2 Info[3] = CreatePickup(1272,1,2139.6292,-1184.9888,23.9922); // Store 3 Info[4] = CreatePickup(1273,1,2459.2615,-1691.6536,13.5487); // TBK Hidout House Info[5] = CreatePickup(123,1,2729.3557,-2451.2358,17.5937); // SoS Hidout House Info[6] = CreatePickup(1239,1,1568.8904,-1689.9894,6.2188); // PD Icon