if (strcmp(\"/god\", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,99999);
return 1;
}
if (strcmp(\"/god ki\", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,9999);
return 1;
}
Ez komoly? O.o
?
if (strcmp(\"/god\", cmdtext, true, 10) == 0)
{
if(GetPlayerHealth(playerid) >100)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, -1, \"God mod ki\");
}
else
{
SetPlayerHealth(playerid, 99999);
SendClientMessage(playerid, -1, \"God mod be\");
}
return 1;
}
Így nem lenne egyszerûbb?