04.08.2009, 19:33
make me that dcmd code to a pawn code?:
pawn Код:
dcmd_killmsg(playerid,params[])
{
if((!strcmp(params,"1",true)) || (!strcmp(params,"\"1\"",true))) {
for(new i=0;i<MAX_PLAYERS;i++) {
if(IsPlayerConnected(i)){
GivePlayerMoney(i,10000);
}
}
return 1;
}
if((!strcmp(params,"2",true)) || (!strcmp(params,"\"2\"",true))) {
for(new i=0;i<MAX_PLAYERS;i++) {
if(IsPlayerConnected(i)){
GivePlayerMoney(i,100000);
}
}
return 1;
}
if((!strcmp(params,"3",true)) || (!strcmp(params,"\"3\"",true))) {
for(new i=0;i<MAX_PLAYERS;i++) {
if(IsPlayerConnected(i)){
GivePlayerMoney(i,1000000);
}
}
return 1;
}
return 1;
}