01.01.2011, 12:31
hmmm like this?
but gives me alot of errors
@Grim_ I like dcmd I will stick with it
pawn Код:
dcmd_god(playerid, params[])
{
if(strcmp(params, "0", true)==0) {
new pid;
if(sscanf(params, "u", pid)) return SendClientMessage(playerid, Yellow, "Usage: /god 1/0");
if(level[playerid] >= 1) {
SetPlayerHealth(playerid, 100);
}
else if(strcmp(params, "1", true)==0) {
new pid;
if(sscanf(params, "u", pid)) return SendClientMessage(playerid, Yellow, "Usage: /god 1/0");
if(level[playerid] >= 1) {
SetPlayerHealth(playerid, 10000);
} else SendClientMessage(playerid, White, "SERVER: Unknown command.");
}
return 1;
}
@Grim_ I like dcmd I will stick with it