04.04.2011, 06:12
hi frnd, I have created 2 checkpoint and i want that if player enter in checkpoint he will teleport,
for ex : in this in /warct i want him to teleport to 0.0.0 and in /wart 194, -257,1120
help me please
Sorry For Bad English
Код:
if (strcmp("/warct", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_GREEN ,"You have teleported to Los Santos Airport Counter Terrorist WAR"); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 1940.221, -2530.451, 62.309); SetPlayerCheckpoint(playerid, 1950.182, -2520.425, 62.252, 1); return 1; } if (strcmp("/wart", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_GREEN ,"You have teleported to Los Santos Airport Terrorist WAR"); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 1909, -2518, 69); SetPlayerCheckpoint(playerid, 1929, -2509, 69, 1); return 1; } return 0; }
help me please
Sorry For Bad English