10.05.2010, 21:50
hello, im asking for help again
i have a problem with this script when i want to spawn in an area i do the command to tele and i can get there. but if someone else does the same command instead of sending them there it will respawn me im very new to scripting and cant c what im doing wrong...anyway here is the script.
timers
can anyone tell me why it only spawns 1 player?
i know its probably a stupid mistake but im crap lol
many thanks in advance
i have a problem with this script when i want to spawn in an area i do the command to tele and i can get there. but if someone else does the same command instead of sending them there it will respawn me im very new to scripting and cant c what im doing wrong...anyway here is the script.Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == AREA_CHOOSE)
{
if(response == 1)
{
TEAMarea[playerid] = 1;
SetTimer("WARSPAWN",30000,0);
SendClientMessage(playerid,blue,"You Have Choosen Airport You Will Spawn In Approx 30Secs ");
SendClientMessage(playerid,blue,"You WILL Loose Your Money When You Enter/Leave The Area");
}
else
{
TEAMarea[playerid] = 2;
SetTimer("WARSPAWN2",30000,0);
SendClientMessage(playerid,blue,"You Have Choosen Area52 You Will Spawn In Approx 30secs");
SendClientMessage(playerid,blue,"You WILL Loose Your Money When You Enter/Leave The Area");
}
return 1;
}
return 0;
}
Код:
public WARSPAWN(playerid)
{
SetPlayerVirtualWorld(playerid,10);
PutPlayerInVehicle(playerid,sparrow1,0);
return 1;
}
public WARSPAWN2(playerid)
{
SetPlayerVirtualWorld(playerid,10);
SetPlayerPos(playerid,213.4090,1903.2786,17.6406);//area52
SetPlayerFacingAngle(playerid,3.5565);
return 1;
}
i know its probably a stupid mistake but im crap lol
many thanks in advance

