Hallo..
Ich versuche die ganze Zeit Commands zu machen (mehrrer zu machen) aber es kommt nur ein Error oder geht garnix..
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/area", true))
{
SendClientMessageToAll(0xDEEE20FF, "SERVER: Jemand ist der Area betreten!!! (/area)");
SendClientMessage(playerid, 0xFFFFFFFF, "Willkommen in der Area!!!");
SetPlayerPos(playerid,322.5602,2054.1702,17.6406,149.6487);
return 1;
// Returning 1 informs the server that the command has been processed.
// OnPlayerCommandText won't be called in other scripts.
}
return 0;
// Returning 0 informs the server that the command hasn't been processed by this script.
// OnPlayerCommandText will be called in other scripts until one returns 1.
// If no scripts return 1, the 'SERVER: Unknown Command' message will be shown.
}
if (!strcmp2(cmdtext,"/healme",true))
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid,0xFF3399AA,"Du hast dich geheilt!");
return 1;
}
Das ersetz der immer.. wenn ich danmn/healme mache, dann komm ich in die Area und so Scheretze!!