22.07.2011, 14:55
Oie Gente tipow to com um poblema que й assim eu to terminando um gm de drift aki ai eu to fazendo os teleportes e quando eu faзo um vai di boa so que quando digita o teleporte in game tudo que vc digita com / ele vai pra um mesmo teleporte.
codigo:
codigo:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/admins", true) == 0) { new Jogador[24]; new count5; new msg[120]; for(new i=0; i<MAX_PLAYERS; i++){ if(IsPlayerConnected(i) && IsPlayerAdmin(i)){ GetPlayerName(i,Jogador,24); format(msg,sizeof(msg),"Admins Online: %s", Jogador); SendClientMessage(playerid, 0xFFFFFFAA, msg); count5++; } } if(count5 == 0){ SendClientMessage(playerid, 0xFFFFFFAA, "Nenhum Admin Online No Momento Aguarde."); } return 1; //Prox if (strcmp("/Advance2", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, -2423.2783,-609.5183,132.5589); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, -2423.2783,-609.5183,132.5589); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance3", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, 1257.6019,-2027.8704,59.4885); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, 1257.6019,-2027.8704,59.4885); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance4", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, 2295.4639,1389.8578,42.8203); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, 2295.4639,1389.8578,42.8203); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance5", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, 2259.6487,1963.1309,31.7797); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, 2259.6487,1963.1309,31.7797); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance6", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, 2892.3997,2431.1709,10.8203); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, 2892.3997,2431.1709,10.8203); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance7", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, 2717.1382,-1508.3368,30.2729); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, 2717.1382,-1508.3368,30.2729); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance8", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, 2806.3691,-1438.4415,40.0432); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, 2806.3691,-1438.4415,40.0432); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance9", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, 2499.1069,1272.4935,10.8125); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, 2499.1069,1272.4935,10.8125); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance10", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, -57.5438,-1414.3257,11.7628); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, -57.5438,-1414.3257,11.7628); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance11", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, -879.6669,1962.4957,60.1157,0.0000); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, -879.6669,1962.4957,60.1157,0.0000); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance12", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, -738.0212,2632.8623,65.9041,0.0000); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, -738.0212,2632.8623,65.9041,0.0000); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance13", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, 2297.8271,1579.0549,23.3896,0.0000); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, 2297.8271,1579.0549,23.3896,0.0000); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance14", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, -1994.4552,343.3547,35.0156,0.0000); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, -1994.4552,343.3547,35.0156,0.0000); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance15", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, -57.5438,-1414.3257,11.7628,0.0000); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, -57.5438,-1414.3257,11.7628,0.0000); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance16", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, -1896.6702,-141.8418,38.2422,0.0000); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, -1896.6702,-141.8418,38.2422,0.0000); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance17", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, 2224.3079,2770.3950,10.8140,0.0000); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, 2224.3079,2770.3950,10.8140,0.0000); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance18", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, 2041.7959,1889.8982,11.9545,0.0000); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, 2041.7959,1889.8982,11.9545,0.0000); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance19", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, -760.3386,-1675.9905,97.2323,0.0000); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, -760.3386,-1675.9905,97.2323,0.0000); SetPlayerFacingAngle(playerid,0.0); } //Prox if (strcmp("/Advance20", cmdtext, true, 10) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, -2083.0410,-757.3891,66.8750,357.6912); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SetPlayerInterior(playerid,0);} } else{ SetPlayerInterior(playerid,0);{} SetPlayerPos(playerid, -2083.0410,-757.3891,66.8750,357.6912); SetPlayerFacingAngle(playerid,0.0);