31.05.2010, 21:32
Hello. I have a problem.
This is my command for teleport:
How can i make it works with 2 Languages? and using this:
And this is in Polish:
English:
How can you make it? I already have a script just would like to know how to do teleport.
This is my command for teleport:
Код:
if (strcmp(cmdtext, "/dust", true) == 0) { if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), -314.7742, 1515.2451, 75.0225); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.4131); SendClientMessage(playerid, COLOR_GREEN,"Witaj na Dust."); } else { SetPlayerPos(playerid, -314.7742, 1515.2451, 75.0225); SetPlayerFacingAngle(playerid, 0.4131); SendClientMessage(playerid, COLOR_GREEN,"Witaj na Dust."); } SetCameraBehindPlayer(playerid); return 1; }
Код:
if(Polish[playerid] == 1) if(English[playerid] == 1)
Код:
SendClientMessage(playerid, COLOR_GREEN,"Witaj na Dust.");
Код:
SendClientMessage(playerid, COLOR_GREEN,"Welcome on Dust.");