09.02.2011, 16:33
I wanted to ask that how can I create a script from where I can Set every Position to where I want to?
if(strcmp(cmd,"/tplayer",true)==0){
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
SetPlayerPos(i,0,0,0);// put your coordinateshere
}
return 1;
}
COMMAND:tplayer(playerid, params[])
{
new Float:posX,Float:posY,Float:posZ;
if(!sscanf(params, "fff",posX,posY,posZ))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerPos(i, posX,posY,posZ);
}
}
else return SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /tplayer [X][Y][Z]");
return 1;
}