Author Topic: Language SYstem [ v2 ] [ By me ]  (Read 4122 times)

0 Members and 1 Guest are viewing this topic.

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Language SYstem [ v2 ] [ By me ]
« on: March 29, 2014, 08:55:11 pm »
!!!

Add

Code: [Select]
new PlayerName[MAX_PLAYERS][MAX_PLAYER_NAME+1]; // for others not gups

Code: [Select]
new gPlayers[MAX_PLAYERS][MAX_PLAYER_NAME+1]; // for gups
Add Commands In OnPlayerCommandText

Code: [Select]
else if(strcmp(cmd,"english", true) == 0) {
SendClientMessage(playerid,COLOR_GREEN," Just Set Language To English ");
Language[playerid] = 1;
return 1;
}
else if(strcmp(cmd,"spainish", true) == 0) {
SendClientMessage(playerid,COLOR_GREEN," Sólo tienes que configurar su idioma Para Spainish");
Language[playerid] = 2;
return 1;
}
else if(strcmp(cmd,"language", true) == 0) {
new xD[123];
format(xD,123," %s 's Langauge, %s ", PlayerName, GetPlayerLanguage(playerid));
SendClientMessageToAll(COLOR_GREEN,xD);
return 1;
}

Add On OnPlayerConnect
Code: [Select]
if(Language[playerid] == 2) {
new xD[123];
format(xD,123,"%s Conectado al servidor", PlayerName[playerid]);
SendClientMessage(playerid,COLOR_RED,xD);
}
if(Language[playerid] == 1) {
new xD[123];
format(xD,123,"%s Connect To Server", PlayerName[playerid]);
SendClientMessage(playerid,COLOR_RED,xD);
}


OnPlayerDisconnect

Code: [Select]
if(Language[playerid] == 2) {
new xD[123];
format(xD,123,"%s dejado el servidor", PlayerName[playerid]);
SendClientMessage(playerid,COLOR_RED,xD);
}
if(Language[playerid] == 1) {
new xD[123];
format(xD,123,"%s left the server", PlayerName[playerid]);
SendClientMessage(playerid,COLOR_RED,xD);
}

OnPlayerSpawn

Code: [Select]
if(Language[playerid] == 2) {
new xD[123];
format(xD,123,"%s ha generado " , PlayerName[playerid]);
SendClientMessage(playerid,COLOR_RED,xD);
}
if(Language[playerid] == 1) {
new xD[123];
format(xD,123,"%s Has Spawned" , PlayerName[playerid]);
SendClientMessage(playerid,COLOR_RED,xD);
}

OnPlayerDeath

Code: [Select]
if(Language[playerid] == 2) {
new xD[123];
format(xD,123,"%s ha muerto", PlayerName[playerid]);
SendClientMessage(playerid,COLOR_RED,xD);
}
if(Language[playerid] == 1) {
new xD[123];
format(xD,123,"%s has died", PlayerName[playerid]);
SendClientMessage(playerid,COLOR_RED,xD);
}

Add This In. OnPlayerSpawn, OnPlayerDeath, OnPlayerConnect & OnPlayerDisconnect

Code: [Select]
GetPlayerName(playerid,PlayerName[playerid],MAX_PLAYER_NAME);
Public To Check Player Language!!

Code: [Select]
public GetPlayerLanguage(playerid) {
if(Language[playerid] == 0) {
SendClientMessage(playerid,COLOR_RED," Language Default ( English )");
}
if(Language[playerid] == 1) {
SendClientMessage(playerid,COLOR_GREEN," Language : English ");
}
if(Language[playerid] == 2) {
SendClientMessage(playerid,COLOR_BLUE,"Malpas: Spainish");
}
return 1;
}





« Last Edit: March 29, 2014, 08:58:27 pm by mrockxkingbutt »
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline MatheuS

  • Made Man
  • ***
  • Posts: 207
  • Pawn And Squirrel Scripter
    • View Profile
    • Brazillian Community
Re: Language SYstem [ v2 ] [ By me ]
« Reply #1 on: March 30, 2014, 01:40:32 am »
what's different than mine?  ???

mine is easier to use  :-[

is because v2?
« Last Edit: March 30, 2014, 05:17:01 am by MatheuS »

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: Language SYstem [ v2 ] [ By me ]
« Reply #2 on: March 31, 2014, 07:30:07 am »
mine is easier to use

Yep, yours is easier to use than this.

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.