ocmd:createsgebaeude(playerid,params[])
{
new Float:x,Float:y,Float:z,gebaeudenamen[28],int,world,opentime,closetime;
new Zeit = gettime();
if(sscanf(params,"sdddd",gebaeudenamen,int,world,opentime,closetime))return SendClientMessage(playerid,ROT,"FEHLER:/createsgebaeude [GEBAEUDENAME] [INT-NR] [V-WELT] [OpenTime] [CloseTime]");
if(int < 1 || int > 3)return SendClientMessage(playerid,ROT,"FEHLER:Die INTERIOR-NUMMER muss zwischen 1 - 3 liegen!");
if(Zeit < 0 || Zeit < 24)return SendClientMessage(playerid,ROT,"FEHLER:Die LADEN-ZEITEN müssen zwischen 0 - 24Uhr liegen!");
GetPlayerPos(playerid,x,y,z);
ErstelleSGebaeude(x,y,z,gebaeudenamen,int,world,opentime,closetime);
switch(int){
case 2: SetPlayerMapIcon(playerid,int,x,y,z,38,0,MAPICON_LOCAL);
case 3: SetPlayerMapIcon(playerid,int,x,y,z,52,0,MAPICON_LOCAL);
case 4,5: SetPlayerMapIcon(playerid,int,x,y,z,30,0,MAPICON_LOCAL);
}
return 1;
}
Hier is der ganze Befehl, da wähle ich auch die V-World aus.