26.01.2012, 16:27
I just made my own first teleport! I was werry happy with it until i found out cars is at the same position as when i typed the cmd. Here are the scripts
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/nascar", true) == 0)
{
SetPlayerPos(playerid,1433.4521,1504.1399,10.8203) ;
return 1;
}
if(strcmp(cmd, "/sf", true) == 0)
{
SetPlayerPos(playerid,-1898.6420,243.1353,41.0469);
return 1;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/nascar", true) == 0)
{
SetPlayerPos(playerid,1433.4521,1504.1399,10.8203) ;
return 1;
}
if(strcmp(cmd, "/sf", true) == 0)
{
SetPlayerPos(playerid,-1898.6420,243.1353,41.0469);
return 1;