22.01.2010, 17:04
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;
}