SA-MP Forums Archive
event bug... - 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: event bug... (/showthread.php?tid=595586)



event bug... - ahmedraed - 04.12.2015

the system was working but i dont know what the heck happened to him...

Quote:

CMD:join(playerid, params[])
{
if(pInfo[playerid][Joined] == 1) return SendClientMessage(playerid, RED, "You are already in the event!");
SetPlayerPos(playerid,GetPVarFloat(playerid,"xxpos "), GetPVarFloat(playerid,"yypos"), GetPVarFloat(playerid,"zzpos"));
SetPlayerInterior(playerid,GetPVarInt(playerid,"in t"));
SetPlayerVirtualWorld(playerid,GetPVarInt(playerid ,"world"));
SendClientMessage(playerid, GREEN, "You have joined the event!");

Quote:

CMD:epos(playerid, params[])
{
if(pInfo[playerid][Admin]<4) return SendClientMessage(playerid, RED, "ERROR: You are not a high enough level to use this command");
GetPlayerPos(playerid,x,y,z);
SetPVarFloat(playerid,"xxpos",x);
SetPVarFloat(playerid,"yypos",y);
SetPVarFloat(playerid,"zzepos",z);
SetPVarInt(playerid,"int",GetPlayerInterior(player id));
SetPVarInt(playerid,"world",GetPlayerVirtualWorld( playerid));
SendClientMessage(playerid, GREEN, "Event Position Has Been Set!");
eInfo[Pos] = 1;
return 1;
}




Re: event bug... - Denying - 05.12.2015

What's the problem though? What did it used to do and what does it do now?

Also, I'm not quite sure, but should that space be there? In SetPlayerPos, xxpos.

Код:
GetPVarFloat(playerid,"xxpos "),