Need help Rep+1 - 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: Need help Rep+1 (
/showthread.php?tid=565770)
Need help Rep+1 -
MBilal - 01.03.2015
I make an Event system in that i /setteamspawn it will save spawn of that team for event , but its only set the spawn on the guyz who are playing in server those guy can only spawn at that place , I want when the event is going all new guy who join server they spawn at the event spawn not the original spawn..!
Re: Need help Rep+1 -
De4dpOol - 01.03.2015
Save the coordinates given in command in variables and when the player spawns set his position according to the values in variables.
Re: Need help Rep+1 -
CalvinC - 01.03.2015
Quote:
Originally Posted by Forum Rules
|
Hire someone to script it for you, or download a filterscript, the scripting help section isn't a place to request scripts to be made for you.
Re: Need help Rep+1 -
MBilal - 01.03.2015
Please Read up ,I make it but it for the Player who was in server,I want that it will work for the guys who just join the server..i want new guys all spawn at that place event place ..
my code is working fine..but i want that the guys who just join the server if the event is going on they also spawn there...
Код:
//UnderOnPlayerSpawn
if(pInfo[playerid][CES]==1 && pInfo[playerid][pSpawn]==1)
{
SetPlayerPos(playerid,GetPVarFloat(playerid,"XX"),GetPVarFloat(playerid,"XY"),GetPVarFloat(playerid,"XZ"));
}
CMD:setspawnteam1(playerid,params[]) // when i use this it will set the spawn team C1
{
if(pInfo[playerid][pLevel] >= 3 )
{
new Float:P[3];
GetPlayerPos(playerid,P[0],P[1],P[2]);
SetPVarFloat(playerid,"XX",P[0]);
SetPVarFloat(playerid,"XY",P[1]);
SetPVarFloat(playerid,"XZ",P[2]);
for(new i=0; i < MAX_PLAYERS; i++)
{
if(gTeam[i] == C1)
{
SetPVarFloat(i,"XX",P[0]);
SetPVarFloat(i,"XY",P[1]);
SetPVarFloat(i,"XZ",P[2]);
pInfo[i][CES]=1;
}
}
}else return SCM(playerid, COLOR_KRED, "You need to be admin to use this cmd!");return 1;
}
CMD:oneventspawn(playerid,params[]) // when i use this it will turn on there event spawn .
{
if(pInfo[playerid][pLevel] >= 3 )
{
for(new i=0; i < MAX_PLAYERS; i++)
{
pInfo[i][pSpawn]=1;
}
}else return SCM(playerid, COLOR_KRED, "You need to be admin to use this cmd!");return 1;
}
this will work only for the players who have pInfo[playerid][pSpawn]=1; and pInfo[playerid][CES]=1;
I'm saying if the event is going on some budy join he have pInfo[playerid][pSpawn]=0; and pInfo[playerid][CES]=0;
he can't enter that event , I want if event is going on some budy join server he will spawn at event place..