here you go, clean and simple
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/airport", cmdtext, true, 10) == 0)
{
new randtele = random(4);
switch(randtele)
{
case 0: SetPlayerPos(playerid, -2764.6,1317.5,7.2);
case 1: SetPlayerPos(playerid, -2942.7,1361.2,10.7);
case 2: SetPlayerPos(playerid, -2896.7,1379.1,10.5);
case 3: SetPlayerPos(playerid, -2962.1,1466.0,10.8);
}
return 1;
}
return 0;
}
don't know about the skins though
you could try this for random skins and random teleports
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/airport", cmdtext, true, 10) == 0)
{
new randtele = random(8);
switch(randtele)
{
case 0: SetPlayerPos(playerid, -2764.6,1317.5,7.2), SetPlayerSkin(playerid,114);
case 1: SetPlayerPos(playerid, -2942.7,1361.2,10.7), SetPlayerSkin(playerid,114);
case 2: SetPlayerPos(playerid, -2896.7,1379.1,10.5), SetPlayerSkin(playerid,114);
case 3: SetPlayerPos(playerid, -2962.1,1466.0,10.8), SetPlayerSkin(playerid,114);
case 4: SetPlayerPos(playerid, -2764.6,1317.5,7.2), SetPlayerSkin(playerid,108);
case 5: SetPlayerPos(playerid, -2942.7,1361.2,10.7), SetPlayerSkin(playerid,108);
case 6: SetPlayerPos(playerid, -2896.7,1379.1,10.5), SetPlayerSkin(playerid,108);
case 7: SetPlayerPos(playerid, -2962.1,1466.0,10.8), SetPlayerSkin(playerid,108);
}
return 1;
}
return 0;
}
hope this helps