Languages System problem and some questions
#9

On top of your script under includes/defines:
pawn Код:
new language[MAX_PLAYERS];
pawn Код:
if(strcmp(cmdtext, "/sfp", true) == 0)
{
if(derbygodupfuck[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "Du bist im Derby zum verlassen tippe /derbyex");
if(DMZone[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "Du bist im DM Modus zum verlassen tippe /dmex");
new string[100];
new cmdname[MAX_PLAYER_NAME];
new cartype=GetPlayerVehicleID(playerid);
SetPlayerInterior(playerid,0);

for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) {
switch(language[i])
case 0:
{
GetPlayerName(playerid, cmdname, sizeof(cmdname));
format(string, sizeof(string), ">>> %s ist bei San fierros puff /sfp <<<", cmdname);
SendClientMessageToAll(0xF17A26FF, string);
}
case 1:
{
GetPlayerName(playerid, cmdname, sizeof(cmdname));
format(string, sizeof(string), ">>> %s is on San fierros puff /sfp <<<", cmdname);
SendClientMessageToAll(0xF17A26FF, string);
}
}
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid), -2680.3997,1340.7634,16.9978);
SetVehicleZAngle(cartype,268.0079);
}
else
{
SetPlayerPos(playerid, -2680.3997,1340.7634,16.9978);
}
return 1;
}
Reply


Messages In This Thread
Languages System problem and some questions - by a-day - 22.01.2010, 15:38
Re: Languages System problem and some questions - by KnooL - 22.01.2010, 15:40
Re: Languages System problem and some questions - by Correlli - 22.01.2010, 15:42
Re: Languages System problem and some questions - by a-day - 22.01.2010, 15:47
Re: Languages System problem and some questions - by KnooL - 22.01.2010, 15:53
Re: Languages System problem and some questions - by a-day - 22.01.2010, 16:29
Re: Languages System problem and some questions - by KnooL - 22.01.2010, 16:52
Re: Languages System problem and some questions - by a-day - 22.01.2010, 16:59
Re: Languages System problem and some questions - by KnooL - 22.01.2010, 17:04
Re: Languages System problem and some questions - by a-day - 22.01.2010, 17:21

Forum Jump:


Users browsing this thread: 2 Guest(s)