hi help server - 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)
+--- Thread: hi help server (
/showthread.php?tid=486569)
hi help server -
moustafa0550 - 09.01.2014
i off server my pickup disapear how to save it float or load any things help
Re: hi help server -
-Jason - 09.01.2014
What?
Re: hi help server -
moustafa0550 - 09.01.2014
my pickup disapear i off server how to no disapear
Re: hi help server -
AustinWeerdGuy - 09.01.2014
sorry but your english is terrible, we cant understand you...
Re: hi help server -
moustafa0550 - 09.01.2014
i have fs pickup i create it esey only i close server.exe
my pickup destory disapear not in server i make it again how to defince it to i create pickup save any pickup i create it in server and load it
Re: hi help server -
Acres - 09.01.2014
depends if you want like a cmd you use in there then just
Код:
pickup = CreatePickup(1242(Pickup ID), 2, 1503.3359(XCoord), 1432.3585(YCoord), 10.1191(ZCoord), 0(Virtualworld));
Change the Coords to what you want.
also virtualworld is usually 0.
Create this in your Gamemode so it will be always saved and it one place.
Re: hi help server -
moustafa0550 - 09.01.2014
see here its fs how to add it here
Quote:
#define MAX_BRIBES 1
#include <a_samp>
#include <zcmd>
new BribeTimer[MAX_PLAYERS];
new Bribe[MAX_BRIBES];
CMD:createbribe(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,
-1, "You are not a RCON admin.");
new Float[3];
GetPlayerPos(playerid, p[0], p[1], p[2]);
for(new i = 0; i < MAX_BRIBES; i++)
{
Bribe[i] = CreatePickup(1247, 1, p[0], p[1], p[2],
GetPlayerVirtualWorld(playerid));
}
SendClientMessage(playerid, -1, "You created a Bribe at your
Location.");
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
for(new i = 0; i < MAX_BRIBES; i++)
{
if(pickupid == Bribe[i])
{
new Wanted = GetPlayerWantedLevel(playerid);
if(Wanted == 0) return SendClientMessage(playerid, -1, "You
dont need a Bribe right now.");
if(BribeTimer[playerid] == 1) return SendClientMessage
(playerid, -1, "You cant do this right now.");
SetPlayerWantedLevel(playerid, Wanted - 1);
BribeTimer[playerid] = 1;
SetTimerEx("BribeDecrease", false, 300000, "i", playerid);
}
}
return 1;
}
forward BribeDecrease(playerid);
public BribeDecrease(playerid)
{
BribeTimer[playerid] = 0;
return 1;
}
|
Re: hi help server -
moustafa0550 - 09.01.2014
how to defince pickup i create here in this fs
Re: hi help server -
SandKing94 - 09.01.2014
Man, learn english we cant help you if we cant understand you
Re: hi help server -
moustafa0550 - 09.01.2014
see photo to know